Test Report Analyzer
CI is red and the report is 4,000 lines. Drop it here: failures grouped by cause, flaky and slow tests, and a summary ready for Slack.
- example-results.json
Where do I get the report?
- Playwright
npx playwright test --reporter=json > results.json, orreporter: [['json', { outputFile: 'results.json' }]]in the config. Thejunitreporter works too.- Maven / Gradle
target/surefire-reports/TEST-*.xml·build/test-results/test/*.xml- pytest
pytest --junitxml=report.xml- Jest / Vitest
jest --json --outputFile=results.json·vitest run --reporter=json --outputFile=results.json- Cypress, .NET, Go, others
- Any JUnit XML:
mocha-junit-reporter,JunitXml.TestLogger,go-junit-report. - In CI
- Download the job's artifacts (GitHub Actions, GitLab, Jenkins) and drop the ZIP as is: the reports inside are found and merged, screenshots and traces are skipped.
Example run. Drop your own report above to replace it.
6 tests failed from 3 different causes.
20 tests · pass rate 68% · 1m 44s · Playwright JSON
Fix first: Error: expect(locator).toBeVisible() failed getByRole('button', { name: 'Place order' }) (3 tests in checkout/checkout.spec.ts)
Export
- 11 passed
- 6 failed
- 2 flaky
- 1 skipped
Pass rate 68% = (11 passed + 2 flaky) ÷ 19 that ran. 1 skipped test is not counted. Flaky tests passed on a retry, so they count as passed.
Failure causes
6 failed tests → 3 causes
Time
Where 1m 44s went
- Wall clock
- 1m 44s
- Test time
- 3m 45s
- Parallelism
- 2.2×
- Retry tax
- 1m 36s43% of test time
Workers
4 workers · idle 45% of the time · longest: Profile › uploads an avatar (30s)
The timeline needs a wider screen. Turn the phone or open this page on a laptop.
- passed
- failed
- failed, then retried
6 failed tests grouped by error. Fix the top group first: it is the most tests for one change.
3tests
Error: expect(locator).toBeVisible() failedgetByRole('button', { name: 'Place order' })checkout/checkout.spec.ts50%- Checkout › pays with a saved card
- Checkout › pays with PayPal
- Checkout › applies a discount code
Full error (first test)Error: expect(locator).toBeVisible() failed Locator: getByRole('button', { name: 'Place order' }) Expected: visible Received: <element(s) not found> Timeout: 5000ms at /work/shop/tests/checkout/checkout.spec.ts:16:312tests
Error: expect(received).toBe(expected) // Object.is equalitycart/cart.spec.ts33%- Cart › updates the badge count
- Cart › keeps items after sign-in
Full error (first test)Error: expect(received).toBe(expected) // Object.is equality Expected: 3 Received: 2 at /work/shop/tests/cart/cart.spec.ts:22:311test
TimeoutError: page.goto: Timeout 30000ms exceeded.profile/profile.spec.ts17%- Profile › uploads an avatar
Full errorTimeoutError: page.goto: Timeout 30000ms exceeded. at /work/shop/tests/profile/profile.spec.ts:13:16
2 tests passed only after a retry. Retries hide them in CI, and in this run they cost 36s of failed attempts.
- Login › remembers the session after reload
Error: expect(page).toHaveURL(expected) failedfailed 1 of 2 attempts - Search › sorts by rating
Error: Test timeout of 30000ms exceeded.failed 1 of 2 attempts
- 1Profile › uploads an avatar1m27%
- 2Search › sorts by rating40s18%
- 3Search › filters by price21s9%
- 4Checkout › pays with PayPal17s8%
- 5Checkout › pays with a saved card17s7%
- 6Checkout › applies a discount code16s7%
- 7Checkout › ships to a new address15s7%
- 8Login › remembers the session after reload8.5s4%
- 9Cart › keeps items after sign-in6.0s3%
- 10Cart › updates the badge count4.4s2%
🔴 *6 tests failed from 3 different causes.*
20 tests · 11 passed · 6 failed · 2 flaky · 1 skipped · 1m 44s · pass rate 68%
*Fix first:* `Error: expect(locator).toBeVisible() failed getByRole('button', { name: 'Place order' })`: 3 tests (checkout/checkout.spec.ts)
*Other failures*
• `Error: expect(received).toBe(expected) // Object.is equality`: 2 tests (cart/cart.spec.ts)
• `TimeoutError: page.goto: Timeout 30000ms exceeded.`: 1 test (profile/profile.spec.ts)
*Flaky (retries cost 36s)*
• Login › remembers the session after reload: failed 1 of 2 attempts
• Search › sorts by rating: failed 1 of 2 attempts
*Slowest*
• Profile › uploads an avatar: 1m
• Search › sorts by rating: 40s
• Search › filters by price: 21s
_Grouped by cause with aqapro.com/tools/test-report-analyzer_What the analyzer shows
A red CI build hands you hundreds of lines of XML or JSON. This tool turns that report into four answers:
- Why it failed. Failed tests grouped by the error that broke them, largest group first. One fix often clears a whole group.
- What is flaky. Tests that passed only on retry, or passed in one run and failed in another.
- What is slow. The slowest tests and spec files, with their share of the total test time.
- What to tell the team. A short summary in Slack mrkdwn or Markdown, ready for a channel, a PR comment or a Jira ticket.
How to get a report out of your test runner
| Runner | Command or setting | Format |
|---|---|---|
| Playwright | npx playwright test --reporter=json > results.json | Playwright JSON |
| Playwright (CI) | reporter: [['junit', { outputFile: 'results.xml' }]] | JUnit XML |
| Maven | target/surefire-reports/TEST-*.xml | JUnit XML |
| Gradle | build/test-results/test/*.xml | JUnit XML |
| pytest | pytest --junitxml=report.xml | JUnit XML |
| Jest | jest --json --outputFile=results.json | Jest JSON |
| Vitest | vitest run --reporter=json --outputFile=results.json | Vitest JSON |
| Cypress | mocha-junit-reporter | JUnit XML |
In CI, download the report from the job's artifacts and drop the files onto the analyzer. Several files at once are merged: shards become one run, and repeated runs of the same suite expose flaky tests.
Flaky tests: why retries matter
A single run without retries can only say pass or fail. To see flakiness the report needs a second attempt: Playwright with retries: 2 in CI marks a test that failed and then passed as flaky; Maven Surefire with rerunFailingTestsCount writes flakyFailure elements. Retries keep the build green, which is exactly why flaky tests go unnoticed and keep costing minutes on every run. For the usual causes and fixes, see how to fix flaky Playwright tests.
Frequently asked questions
Which report formats does it read?
JUnit XML from any tool that writes it (Maven Surefire, Gradle, pytest --junitxml, jest-junit, Vitest, Cypress, the Playwright junit reporter, .NET and Go converters), the Playwright JSON reporter, and Jest or Vitest JSON (--json). The format is detected automatically.
Is my report uploaded anywhere?
No. The file is read and parsed by JavaScript in your browser tab. Nothing is sent to a server, so test names, internal URLs and stack traces stay on your machine.
How does it find flaky tests?
Two ways. Inside one report it uses retries: a Playwright test with status flaky, or a JUnit test case with flakyFailure or rerunFailure elements, passed only after failing. Across several reports of the same suite, a test that passed in one run and failed in another is flaky. Without retries and with a single run there is nothing to compare, and the tool says so.
How are failures grouped?
By the first line of the error, reduced to its shape: numbers, IDs, timestamps, URLs, file paths and quoted values are masked. Thirty tests failing on 'Timeout 5000ms exceeded' for different locators become one group, so you see three causes instead of thirty red lines.
Can I analyze sharded CI runs?
Yes. Drop all shard files at once. Tests are merged by file and name, the wall-clock time is the slowest shard, and the summary covers the whole run.