Commit 91c48025 by Gabriel Falcão

Merge pull request #148 from kpisman/master

Please accept smal fix related to skipped steps to xunit output plugin

I will document this xunit support as not-official until someone contribute with tests that simulate the jenkins parser or I have time to work on it.

I don't use the xunit output at all, so I can't even ponder on it
parents 16774875 694a9490
...@@ -48,6 +48,10 @@ def enable(filename=None): ...@@ -48,6 +48,10 @@ def enable(filename=None):
tc.setAttribute("classname", classname) tc.setAttribute("classname", classname)
tc.setAttribute("name", step.sentence) tc.setAttribute("name", step.sentence)
tc.setAttribute("time", str(total_seconds((datetime.now() - step.started)))) tc.setAttribute("time", str(total_seconds((datetime.now() - step.started))))
if not step.ran:
skip=doc.createElement("skipped")
tc.appendChild(skip)
if step.failed: if step.failed:
cdata = doc.createCDATASection(step.why.traceback) cdata = doc.createCDATASection(step.why.traceback)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment