Understanding PDF translation
The ant target
junitreport aggregates testresults in a summary xml document, typically named
JUnit PDF Report converts the summary file to an
XSL-FO xml document.
That document is handed over to FOP for PDF rendering.
junitreport aggregated results layout
This section explains the layout of the summary file created by ant's junitreport target.
conversion to XSL-FO
This section explains how the
junitreport summary file is processed
The summary section of the PDF report aggregates:
- the total number of tests
- the total number of errors
- the total number of failures
- the total execution time
It also derives the success rate using the formula:
(tests - errors - failures) / tests.
This section is divided in two parts:
- part 1: all packages covered in the unit tests, and their statistics
- part 2: per package, all testsuites and their statistics
Part 1 of the packages section of the PDF report aggregates:
- the total number of tests per package
- the total number of errors per package
- the total number of failures per package
- the total execution time per package
Part 2 of the packages section of the PDF report displays, grouped by package:
- the total number of tests per testsuite
- the total number of errors per testsuite
- the total number of failures per testsuite
- the total execution time per testsuite
/testsuites/testsuite[not(./@package = preceding-sibling::testsuite/@package)]
not qualifier skips a package if it has already been visited in a previous testsuite (see Considerations).
This section shows each testsuite in detail:
- the testcases covered in the testsuite
- the status of each testcase
- the error message in case of failure or error
System.errlog, if available