Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spec. for JUnit XML Output [closed]

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++"

like image 907
Gilad Naor Avatar asked Jan 14 '09 10:01

Gilad Naor


People also ask

What is JUnit XML format?

JUnit xml is a framework that was used in many applications in the test frameworks. By default, the test will generate xml files which are simple reports used for the execution of the test. These files are used to generate the report which was custom, we can also generate the reports as per the requirement of testing.

What is Junits?

JUnit is an open source framework designed for the purpose of writing and running tests in the Java programming language.

How do I view JUnit reports?

The target looks for the JUnit report XML files under the directory test-output/junitreports. For the Ant configuration file, the default target to execute is configured as junit-report. Here, we have seen how to use the JUnit XML report generated by TestNG and generate HTML report using Ant.

What is xUnit XML?

The XUnit XML format was developed by the Ant project as part of their JUnit runner. The format includes a tree of test cases organized by test suite, and includes counts of test cases with each status, and the stack trace produced by test cases which failed or errored. There is no official schema.


1 Answers

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

like image 176
Tom Howard Avatar answered Oct 01 '22 04:10

Tom Howard