Compare JUnit reports

Find newly failing, fixed, missing and ambiguous tests across two JUnit XML reports.

Your browser compares the reports locally. Test names and failure details stay on this device.

Find regressions after a change

Choose the earlier report as the baseline and the later report as current. A previous pass followed by a failure or error is a new failure. A previous failure followed by a pass is fixed. Check both observations for tests that are still failing.

Missing tests, added tests, skipped runs and ambiguous duplicate identities need more evidence. Flakiness requires repeated runs under comparable conditions.

Match the same test across reports

The comparison matches the suite path, class name and test name exactly, even when a long suite path is shortened for display and export. Review duplicate observations separately. The XLSX download uses text cells and shortens any cell above the spreadsheet limit of 32,767 characters. Failure details are limited to 400 characters. Standard output and error logs are excluded.

Use UTF-8 JUnit XML with a testsuite or testsuites root, up to 2 MiB and 10,000 test cases per report. XML document types, custom entities and processing instructions are unsupported. Standard XML declarations and built-in escapes are supported.

Read a missing test differently from a new failure

Imagine a baseline with a passed Login test and a failing Checkout test. In current, Login fails while Checkout is absent. Login is a new failure. Checkout is missing from current. Check whether a test filter, renamed suite or incomplete job changed coverage before treating the missing test as a fix.

Choose reports from the same logical run when possible. The comparison matches the exact suite path, class and test name. If parameterized cases repeat the same identity, open the ambiguous entry and inspect the observations together. A single baseline pass and current failure gives you a change to investigate. Judging flakiness takes multiple comparable runs.

Use the result filters for investigation and prepare the XLSX to share the full comparison with someone using a spreadsheet. Its fields are typed as text, including cells that begin with formula-like characters. Standard output and error logs stay out of the report. Failure excerpts can still contain private strings, so review the saved file before sharing it. If a report contains XML declarations for custom entities, export plain UTF-8 JUnit XML from the test runner.

For a worked example, read When Two JUnit Reports Both Contain Four Tests.