views:

2848

answers:

4

Where can I find the specification of JUnit's XML output. My goal is to write a UnitTest++ XML reporter which produced JUnit like output.

See: "Unable to get hudson to parse JUnit test output XML" and "http://stackoverflow.com/questions/411218/hudson-c-and-unittest"

A: 

I can only give you an general information.

In the sourcecode of JUnit, you will find your information. If you provide some more information, I can help you further. My personal hint for finding your specification would be junit.framework.TestResult.

Good luck!

furtelwart
+4  A: 

I found some informal spec at http://ant.1045680.n5.nabble.com/schema-for-junit-xml-output-td1375274.html

HD
yes, I've landed on that page too, but it's not complete. in extending RUnit (unit testing for R) so that it produces output compatible with Hudson, I ended up producing one "testsuites", there a list of "testsuite" and in these all "testcase". I still don't know how to mark deactivated tests.
mariotomo
A: 

The xml output is not generated by JUnit (at least, not the junit.jar), but by the junit ant task.
The relevant class is org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.

Laurent Doré
+1  A: 

As others have mentioned the xml is handled by ANT not jUnit

Here's the best spec I've seen. From this post

CNelson