Spec. for JUnit XML Output

XmlUnit TestingJunit

Xml Problem Overview


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 "https://stackoverflow.com/questions/411218/hudson-c-and-unittest"

Xml Solutions


Solution 1 - Xml

You can find an XSD based on the code in Apache Ant 1.8.2 at https://github.com/windyroad/JUnit-Schema

Solution 2 - Xml

Solution 3 - Xml

Solution 4 - Xml

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

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

Solution 5 - Xml

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!

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionGilad NaorView Question on Stackoverflow
Solution 1 - XmlTom HowardView Answer on Stackoverflow
Solution 2 - XmlLaurent DoréView Answer on Stackoverflow
Solution 3 - XmlHD.View Answer on Stackoverflow
Solution 4 - Xmlcase nelsonView Answer on Stackoverflow
Solution 5 - XmlguerdaView Answer on Stackoverflow