The format in brief
A report is a <testsuites> element with one or more <testsuite> elements. Each suite has counts (tests, failures, errors, skipped) and a time in seconds, and contains <testcase> elements with a name, classname and time. A failing test case has a <failure> or <error> child; a skipped one has <skipped>.
Recommended upload flow
- Your CI step collects every XML file the runner wrote.
- It uploads them in one request with the branch, commit, author, trigger and environment.
- Your backend parses them into one
Runand updates eachTestCase.
Java teams
With Maven, Surefire writes target/surefire-reports/TEST-*.xml. With TestNG, the same Surefire output works, and TestNG also writes its own testng-results.xml if you need groups or parameters.