DevTools Logo

JUnit XML Report Viewer

JUnit XML Report Viewer

Merge, filter and sort JUnit reports from any runner — locally, with exports.

Runs in your browser
Try an example

Reports

0 file(s) · 0 case(s)

Test results

0 of 0 shown

No reports loaded

Pick XML files or paste a JUnit report to see results.

Details

Drop or paste several JUnit XML reports and get one semantic table of suites, cases, statuses and durations. Filter by status, text, origin or duration, sort any column, inspect failure messages and stack traces, and export the visible rows as CSV or a normalized merged XML file. The parser tolerates pytest, jest-junit, Maven Surefire and go-junitxml dialects, including missing attributes and namespaced elements. Reports never leave the browser tab.

More examples

Parallel shards

<testsuites><testsuite name="shard-1">…</testsuite></testsuites>

Drop four shard files, then filter by origin to isolate a regression in one shard.

Slowest cases

<testcase name="test_import" time="2.5"/>

JUnit time is seconds; the viewer displays 2500 ms and ranks the case in the slowest-10 panel.

Failure detail

<failure message="assert 2 == 3" type="AssertionError">…</failure>

Click a failed row to read the message, type and stack trace in the detail drawer.

Examples

Precise duration

Input
<testcase name="test_add" time="0.001234"/>
Output
1.234 ms

JUnit time is seconds; the viewer preserves three decimal places of milliseconds.

Skipped case

Input
<testcase name="pending"><skipped message="wip"/></testcase>
Output
skipped — wip

Skipped is distinct from failed, and its message is displayed.

Merged shards

Input
shard1.xml + shard2.xml
Output
One row per case with origin chips

Dedupe keeps the first occurrence of suite/class/name when shards rerun a case.

About this tool

JUnit XML Report Viewer parses test reports into a single, filterable table. Drop files from parallel shards or paste XML, and every testcase becomes a row with suite, class, status, duration, origin file and failure message — regardless of whether the reporter was pytest, jest-junit, Maven Surefire or go-junitxml.

The summary bar reconciles totals from the parsed cases: passed, failed, error, skipped, pass rate, summed duration and a count of cases whose time attribute was missing. The slowest-10 panel ranks cases with real durations, and a detail drawer shows the full failure message, type and stack trace as text.

Merged results can be exported as a quoted CSV (including the suite column) or re-serialized as a normalized testsuites XML document. Parsing happens locally with DOMParser; reports — which often contain code paths and log snippets — are never uploaded, and message text is rendered as text, never HTML.

What this tool does not do

  • Very large reports are parsed fully in the tab; windowed rendering is not yet implemented.
  • Dialect support covers common JUnit elements; exotic vendor attributes are ignored.
  • Time is assumed to be seconds for every dialect; missing times are shown as an em dash and excluded from rankings.
  • Compare mode is limited to added, removed and status-changed cases by suite/class/name.
  • No reports, filters or results are persisted between visits; nothing is uploaded.

How to use this tool

  1. Load reports

    Pick multiple .xml files or paste XML and choose Add pasted report. Per-file parse errors appear as chips; other files still load.

  2. Filter the table

    Toggle status checkboxes, search names and messages, filter by origin file and set a minimum duration in milliseconds.

  3. Sort and inspect

    Click a column header to sort; clicking again reverses direction. Click a row to open its failure detail drawer.

  4. Deduplicate if needed

    Shards often rerun the same class and name. The Dedupe toggle keeps the first case per suite/class/name.

  5. Export

    Download the visible rows as CSV or as a normalized testsuites XML file to attach to a ticket or report.

Use cases

Parallel CI shards

Combine reports from several jobs and filter by origin to isolate a flaky shard.

Flaky-failure triage

Sort by duration and open the failure detail to compare messages and stack traces.

Release reports

Summarize totals and the slowest cases, then export CSV for a release note or ticket.

Dialect sanity checks

Confirm that a runner's XML exposes the expected statuses and durations before wiring it into a dashboard.

Canonical case fields

FieldMeaning
suite / class / nameSuite path, classname (or suite fallback) and test name
statuspassed, failed, error or skipped from the child element
duration_msJUnit seconds × 1000, rounded to three decimals; blank when missing
originFilename of the report the case came from
message / typefailure/error/skipped message, type and stack text
file / linepytest's optional source location attributes

One case with both failure and error children is a single error row with both messages labeled.

Common mistakes

Mistake:Reading JUnit time as milliseconds.

Fix:The JUnit convention is seconds; the viewer converts to ms and rounds to three decimals.

Mistake:Treating skipped as passed.

Fix:Skipped is its own status with its own message and is excluded from the pass rate.

Mistake:Assuming suite count attributes are authoritative.

Fix:The viewer derives counts from parsed cases so present-but-inconsistent attributes cannot skew the summary.

Mistake:Expecting shared text to disappear after dedupe.

Fix:Dedupe keeps the first case per suite/class/name; turn it off to see every shard's row with its origin.

Mistake:Worrying about formula injection in exported CSV.

Fix:Cells beginning with =, +, - or @ are prefixed with an apostrophe and embedded quotes are doubled.

Frequently asked questions

Which runners' XML is supported?

The parser targets the de-facto JUnit schema: testsuites/testsuite/testcase with failure, error and skipped children. pytest, jest-junit, Maven Surefire and go-junitxml reports work in practice, including namespaced elements, missing attributes, nested suites and pytest's file/line attributes. A file that is not JUnit XML produces a per-file error chip without affecting the others.

Can I merge reports from parallel jobs?

Yes. Pick or drop as many XML files as you like; every case carries its origin filename. Filter by origin to isolate a shard, or enable Dedupe to keep the first case per suite/class/name when shards rerun the same test.

How are durations summed and displayed?

JUnit time attributes are seconds. The viewer converts them to milliseconds, rounds to three decimals (0.001234 s becomes 1.234 ms), sums them for the summary and ranks cases with real durations in the slowest-10 panel. Missing times show an em dash and are excluded from rankings and the missing-duration count.

What counts as skipped versus failed?

A testcase with a skipped child is skipped, with its message shown; failures and errors map to failed and error respectively. A case containing both failure and error stays a single error row with both messages labeled. Skipped cases are counted separately and are not part of the pass rate.

What can I export?

The visible rows can be downloaded as CSV with suite, case, class, status, duration, origin, file, line and a truncated message, or as a normalized testsuites XML document. CSV cells with formula-like prefixes are neutralized and quotes are doubled for spreadsheet safety.

Is my report uploaded anywhere?

No. Parsing, filtering and exporting happen entirely in your browser tab. There is no upload, no server-side analysis and no persistence of reports or filters. Failure messages and stack traces are rendered as text, not HTML.

References & standards