We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed10 years ago.
The community reviewed whether to reopen this question3 months ago and left it closed:
Original close reason(s) were not resolved
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 "Hudson, C++ and UnitTest++"
- Could you provide some more information, which output do you mean? Probably an example or instruction how to get such an ouput? Thanks!guerda– guerda2009-01-16 06:59:16 +00:00CommentedJan 16, 2009 at 6:59
- Is it for JUnit 4.x? Which TestRunner do you use?guerda– guerda2009-05-06 07:55:11 +00:00CommentedMay 6, 2009 at 7:55
- if you had the time to write an XML reporter for UnitTest++, I would be interested if you can share it.Vincent– Vincent2010-11-08 16:57:03 +00:00CommentedNov 8, 2010 at 16:57
5 Answers5
You can find an XSD based on the code in Apache Ant 1.8.2 athttps://github.com/windyroad/JUnit-Schema
4 Comments
Reinderien found out that these are seems to be missing:/testsuites/testsuite/@skipped,/testsuites/testsuite/testcase/skipped,/testsuites/testsuite/error,/testsuites/testsuite/failure,/testsuites/testsuite/system-err, after readthrough ofXMLJUnitResultFormatter.java,XMLResultAggregator.java,XMLConstants.java atsvn.apache.org/repos/asf/ant/core/trunk/src/main/org/apache/…The xml output is not generated by JUnit (at least, not the junit.jar), but by the junit ant task.
The relevant class isorg.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.
3 Comments
I found some informal spec athttp://ant.1045680.n5.nabble.com/schema-for-junit-xml-output-td1375274.html
2 Comments
As others have mentioned the xml is handled by ANT not jUnit
1 Comment
I can only give you an general information.
In thesourcecode 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 bejunit.framework.TestResult.
Good luck!
1 Comment
Explore related questions
See similar questions with these tags.




