Free tool
A Playwright run, as a page anyone can open.
Drop the JSON from npx playwright test --reporter=json. Get failed tests first with the error, file and line, the flaky ones that only passed on retry, results per browser, and the slowest tests — as one HTML file that opens without show-report. Copy a Markdown summary for the pull request, or send the link to whoever has to look.
1 of 12 tests failed · 1 flaky · 2 skipped · 1m 2s
Publishes this report on Comma: one URL that outlives the CI artifact, restricted to named people or your company’s email domain if you like, comments pinned to the test that failed, and the next run kept as a revision you can diff. Free, no card.
How the results are read
- The verdict uses Playwright’s own outcome for each test —
unexpectedis a failure, the same rule that makesplaywright testexit with code 1. A test markedtest.fail()that fails counts as passed. - Failed tests show the describe path, browser project,
file:line, final status (failed, timedOut, interrupted), how many retries ran and the full error with the code frame. - Flaky tests failed and then passed on retry. They pass CI, so they get their own list with the first attempt’s error.
- Projects: a spec run on chromium and webkit is two tests, so a failure on one browser only is visible.
- Run errors from outside any test — a broken
globalSetup, a syntax error in a spec file — come first, because then the counts are not the whole story.
Getting the JSON
| From | How |
|---|---|
| CLI | npx playwright test --reporter=json > results.json |
| Config | reporter: [['html'], ['json', { outputFile: 'results.json' }]] |
| Env var | PLAYWRIGHT_JSON_OUTPUT_NAME=results.json npx playwright test --reporter=json |
| Sharded CI | npx playwright merge-reports --reporter=json ./all-blob-reports > results.json |
| GitHub Actions | upload results.json with actions/upload-artifact, if: ${{ !cancelled() }} |
Passing --reporter=json on the command line replaces the reporters in your config for that run; list both in the config to keep the HTML report too. If anything prints to stdout before the JSON, the tool skips to the first {.
When the test run has to leave CI
End-to-end tests are written by one engineer and read by several people: the reviewer deciding whether the PR is safe, QA tracking a flaky checkout test, the PM asking whether the release is blocked. The Playwright HTML report needs a server and the CI artifact expires. Published to Comma, the run is one link with comments on the failing test, and an agent can publish it from the pipeline after every run as a new revision of the same report — so tonight’s failures sit next to last night’s.
Questions
- How do I turn Playwright results into an HTML report I can share?
- Run npx playwright test --reporter=json > results.json (or add ['json', { outputFile: 'results.json' }] to reporter in playwright.config.ts) and drop the file here. You get a pass/fail verdict, failed tests first with the error message, file and line, flaky tests that only passed on retry, a per-file table and the slowest tests. Download it as one HTML file, copy a Markdown summary, or publish it as a link anyone can open without npx playwright show-report.
- Why can't I just send the playwright-report folder?
- The built-in HTML report is a single-page app that loads its data and traces from files next to index.html, so it has to be served — opened from an email attachment or a Slack download it shows a blank page or a spinner, and a CI artifact expires. This tool produces one static, script-free HTML file that opens anywhere. If you need the full interactive report with traces, zip the playwright-report folder and publish the zip on Comma.
- Which files does it read?
- The JSON reporter output from Playwright Test 1.x, including projects (one row per browser per test), retries, test.describe nesting, tags, skipped and test.fail() tests, and errors thrown outside any test such as a failing globalSetup. ANSI colour codes in error messages are removed. Blob reports from sharded runs need merging first with npx playwright merge-reports --reporter=json; JUnit XML goes in the JUnit XML viewer.
- What counts as flaky?
- Playwright's own definition: a test that failed at least once and then passed on a retry in the same run. The report lists them separately with the first attempt's error, because a flaky test passes CI but is usually the next red build. Set retries in playwright.config.ts (CI often uses 2) or nothing will ever be marked flaky.
- Can I post the results on a pull request?
- Yes. “Copy Markdown” gives a GitHub-flavored verdict line, the counts, a table of failed tests with project and first error line, and the flaky list — paste it into a PR comment or append it to $GITHUB_STEP_SUMMARY. Link the published report for the full error output.
- Does it show screenshots and traces?
- It lists the attachment names (screenshot, video, trace) for each failing test, but the files themselves stay on the CI machine — the JSON only holds their paths. The trace viewer at trace.playwright.dev opens a trace.zip; publish the playwright-report folder as a zip if reviewers need them in one place.
- Is my report uploaded?
- No. The JSON is parsed and the report is built in your browser. It only leaves your machine if you click “Get a shareable link” and publish it to Comma — and then you choose who can open it.
Related: Jest & Vitest report viewer · Playwright report is blank · Share a Playwright report · JUnit XML viewer · Coverage viewer · Lighthouse viewer · k6 report viewer · all free tools