Introduction
JUnit XML is the common XML layout for test results. Many testing frameworks write it, and build servers and test management tools read it. It was introduced by the Ant build tool and became popular with JUnit. There is no official specification, and tools use differing variants.
Structure
The root is usually testsuites, holding testsuite elements
with testcase elements inside. A test case may contain a
failure, error or skipped element; without one
it counts as passed.
Not described
Known, not yet covered
- Reference: this page is a summary; the attributes and the tool variants are not yet described on this site.
- Viewer: the site has no test report viewer for these files.
Also used for
- Android string resources – XML file of an Android app’s strings, string arrays and plurals.
- Excel XML Spreadsheet 2003 – Excel’s single-file XML workbooks from before the .xlsx package.
- Extensible Markup Language – Nested elements with tags and attributes, written as text.
- xCal: iCalendar in XML – iCalendar as XML: events, to-dos and time zones as elements.
- xCard: vCard in XML – vCard 4.0 contacts as XML: names, numbers and addresses as elements.
Links
Software
- Jenkins JUnit plugin – publishes JUnit XML results in Jenkins
Reference
- Common JUnit XML format – a community description of the shared subset, by Testmo