Playwright Test Reporting
Generate reports that route into the user's existing workflow — zero new tools.
Steps
Run if needed — check test-results//playwright-report/; if stale, npx playwright test --reporter=json,html,list.
Parse JSON — total/passed/failed/skipped/flaky, duration per test + total, failed names + errors, flaky (passed on retry).
Detect destination & route automatically:
| Check |
If found |
Action |
TESTRAIL_URL |
TestRail configured |
push results |
SLACK_WEBHOOK_URL |
Slack configured |
post summary |
.github/workflows/ |
GitHub Actions |
results → PR comment via artifacts |
playwright-report/ |
HTML reporter |
open/serve report |
| none |
default |
markdown report |
Generate report — always a markdown report (summary counts, failed-tests table with error+file:line, flaky table, by-project/browser breakdown) saved to test-reports/{date}-report.md. Plus Slack summary (curl webhook), TestRail push, or npx playwright show-report per destination.
Trend analysis — if previous reports exist in test-reports/: compare pass rate over time, identify newly-flaky tests, distinguish new vs recurring failures.
Output
Pass/fail/skip/flaky summary, failed details with errors, destination confirmation, trend comparison, next-action recommendation.
1---2name: playwright-test-reporting3description: Use when generating a Playwright test report or results summary ("test report", "results summary", "show results", "how did tests go", "test dashboard").4tags: [playwright, test-report, results, slack, testrail, ci, trend-analysis, flaky-tests]5source: alirezarezvani/claude-skills6derived_from: engineering-team/playwright-pro/skills/report7metadata:8 source: https://skillmd.com/skills/aashutosh396/playwright-test-reporting9---1011# Playwright Test Reporting1213Generate reports that route into the user's existing workflow — zero new tools.1415## Steps16171. **Run if needed** — check `test-results/`/`playwright-report/`; if stale, `npx playwright test --reporter=json,html,list`.18192. **Parse JSON** — total/passed/failed/skipped/flaky, duration per test + total, failed names + errors, flaky (passed on retry).20213. **Detect destination & route automatically:**2223| Check | If found | Action |24|---|---|---|25| `TESTRAIL_URL` | TestRail configured | push results |26| `SLACK_WEBHOOK_URL` | Slack configured | post summary |27| `.github/workflows/` | GitHub Actions | results → PR comment via artifacts |28| `playwright-report/` | HTML reporter | open/serve report |29| none | default | markdown report |30314. **Generate report** — always a markdown report (summary counts, failed-tests table with error+file:line, flaky table, by-project/browser breakdown) saved to `test-reports/{date}-report.md`. Plus Slack summary (curl webhook), TestRail push, or `npx playwright show-report` per destination.32335. **Trend analysis** — if previous reports exist in `test-reports/`: compare pass rate over time, identify newly-flaky tests, distinguish new vs recurring failures.3435## Output36Pass/fail/skip/flaky summary, failed details with errors, destination confirmation, trend comparison, next-action recommendation.