Generate test report
Smart Test Reporting

Generate test report. Use when user says "test report", "results summary", test status", "show results", "test dashboard", or "how did tests go".
--- name: "report" description: >- Generate test report. Use when user says "test report", "results summary", "test status", "show results", "test dashboard", or "how did tests go". --- # Smart Test Reporting Generate test reports that plug into the user's existing workflow. Zero new tools. ## Steps ### 1. Run Tests (If Not Already Run) Check if recent test results exist: ```bash
Overview
Generate test reports that plug into the user's existing workflow. Zero new tools.
What you get
- Summary with pass/fail/skip/flaky counts
- Failed test details with error messages
- Report destination confirmation
- Trend comparison (if historical data available)
- Next action recommendation (fix failures or celebrate green)
Manual install (npx, ZIP)
npx skills add alirezarezvani/claude-skills --skill report -g -a claude-codemkdir -p ~/.claude/skills && curl -sL https://codeload.github.com/alirezarezvani/claude-skills/tar.gz/19392f7a0826 \
| tar -xz -C ~/.claude/skills --strip-components=4 claude-skills-19392f7a0826/engineering-team/playwright-pro/skills/reportNew-Item -ItemType Directory -Force "$HOME\.claude\skills" | Out-Null; Invoke-WebRequest "https://m.agentalley.io/zip/8647d9eb16ff02ab5df5/report.zip" -OutFile "$env:TEMP\report.zip"; Expand-Archive "$env:TEMP\report.zip" -DestinationPath "$HOME\.claude\skills" -ForceConnects with Agent Alley MCP · agentalley.io/mcp
Files included
SKILL.md2.9 KB
Read the files here
alirezarezvani/
Show the full text127 lines
Smart Test Reporting
Generate test reports that plug into the user's existing workflow. Zero new tools.
Steps
1. Run Tests (If Not Already Run)
Check if recent test results exist:
ls -la test-results/ playwright-report/ 2>/dev/null
If no recent results, run tests:
npx playwright test --reporter=json,html,list 2>&1 | tee test-output.log
2. Parse Results
Read the JSON report:
npx playwright test --reporter=json 2> /dev/null
Extract:
- Total tests, passed, failed, skipped, flaky
- Duration per test and total
- Failed test names with error messages
- Flaky tests (passed on retry)
3. Detect Report Destination
Check what's configured and route automatically:
| Check | If found | Action |
|---|---|---|
TESTRAIL_URL env var |
TestRail configured | Push results via /pw:testrail push |
SLACK_WEBHOOK_URL env var |
Slack configured | Post summary to Slack |
.github/workflows/ |
GitHub Actions | Results go to PR comment via artifacts |
playwright-report/ |
HTML reporter | Open or serve the report |
| None of the above | Default | Generate markdown report |
4. Generate Report
Markdown Report (Always Generated)
# Test Results — {{date}}
## Summary
- ✅ Passed: {{passed}}
- ❌ Failed: {{failed}}
- ⏭️ Skipped: {{skipped}}
- 🔄 Flaky: {{flaky}}
- ⏱️ Duration: {{duration}}
## Failed Tests
| Test | Error | File |
|---|---|---|
| {{name}} | {{error}} | {{file}}:{{line}} |
## Flaky Tests
| Test | Retries | File |
|---|---|---|
| {{name}} | {{retries}} | {{file}} |
## By Project
| Browser | Passed | Failed | Duration |
|---|---|---|---|
| Chromium | X | Y | Zs |
| Firefox | X | Y | Zs |
| WebKit | X | Y | Zs |
Save to test-reports/{{date}}-report.md.
Slack Summary (If Webhook Configured)
curl -X POST "$SLACK_WEBHOOK_URL" \
-H 'Content-Type: application/json' \
-d '{
"text": "🧪 Test Results: ✅ {{passed}} | ❌ {{failed}} | ⏱️ {{duration}}\n{{failed_details}}"
}'
TestRail Push (If Configured)
Invoke /pw:testrail push with the JSON results.
HTML Report
npx playwright show-report
Or if in CI:
echo "HTML report available at: playwright-report/index.html"
5. Trend Analysis (If Historical Data Exists)
If previous reports exist in test-reports/:
- Compare pass rate over time
- Identify tests that became flaky recently
- Highlight new failures vs. recurring failures
Output
- Summary with pass/fail/skip/flaky counts
- Failed test details with error messages
- Report destination confirmation
- Trend comparison (if historical data available)
- Next action recommendation (fix failures or celebrate green)
| 1 | |
| 2 | name "report" |
| 3 | description >- |
| 4 | Generate test report. Use when user says "test report", "results summary", |
| 5 | "test status", "show results", "test dashboard", or "how did tests go". |
| 6 | |
| 7 | |
| 8 | # Smart Test Reporting |
| 9 | |
| 10 | Generate test reports that plug into the user's existing workflow. Zero new tools. |
| 11 | |
| 12 | ## Steps |
| 13 | |
| 14 | ### 1. Run Tests (If Not Already Run) |
| 15 | |
| 16 | Check if recent test results exist: |
| 17 | |
| 18 | |
| 19 | ls -la test-results/ playwright-report/ 2>/dev/null |
| 20 | |
| 21 | |
| 22 | If no recent results, run tests: |
| 23 | |
| 24 | |
| 25 | npx playwright test --reporter=json,html,list 2>&1 | tee test-output.log |
| 26 | |
| 27 | |
| 28 | ### 2. Parse Results |
| 29 | |
| 30 | Read the JSON report: |
| 31 | |
| 32 | |
| 33 | npx playwright test --reporter=json 2> /dev/null |
| 34 | |
| 35 | |
| 36 | Extract: |
| 37 | Total tests, passed, failed, skipped, flaky |
| 38 | Duration per test and total |
| 39 | Failed test names with error messages |
| 40 | Flaky tests (passed on retry) |
| 41 | |
| 42 | ### 3. Detect Report Destination |
| 43 | |
| 44 | Check what's configured and route automatically: |
| 45 | |
| 46 | | Check | If found | Action | |
| 47 | |---|---|---| |
| 48 | | `TESTRAIL_URL` env var | TestRail configured | Push results via `/pw:testrail push` | |
| 49 | | `SLACK_WEBHOOK_URL` env var | Slack configured | Post summary to Slack | |
| 50 | | `.github/workflows/` | GitHub Actions | Results go to PR comment via artifacts | |
| 51 | | `playwright-report/` | HTML reporter | Open or serve the report | |
| 52 | | None of the above | Default | Generate markdown report | |
| 53 | |
| 54 | ### 4. Generate Report |
| 55 | |
| 56 | #### Markdown Report (Always Generated) |
| 57 | |
| 58 | |
| 59 | # Test Results — {{date}} |
| 60 | |
| 61 | ## Summary |
| 62 | - ✅ Passed: {{passed}} |
| 63 | - ❌ Failed: {{failed}} |
| 64 | - ⏭️ Skipped: {{skipped}} |
| 65 | - 🔄 Flaky: {{flaky}} |
| 66 | - ⏱️ Duration: {{duration}} |
| 67 | |
| 68 | ## Failed Tests |
| 69 | | Test | Error | File | |
| 70 | |---|---|---| |
| 71 | | {{name}} | {{error}} | {{file}}:{{line}} | |
| 72 | |
| 73 | ## Flaky Tests |
| 74 | | Test | Retries | File | |
| 75 | |---|---|---| |
| 76 | | {{name}} | {{retries}} | {{file}} | |
| 77 | |
| 78 | ## By Project |
| 79 | | Browser | Passed | Failed | Duration | |
| 80 | |---|---|---|---| |
| 81 | | Chromium | X | Y | Zs | |
| 82 | | Firefox | X | Y | Zs | |
| 83 | | WebKit | X | Y | Zs | |
| 84 | |
| 85 | |
| 86 | Save to `test-reports/{{date}}-report.md`. |
| 87 | |
| 88 | #### Slack Summary (If Webhook Configured) |
| 89 | |
| 90 | |
| 91 | curl -X POST "$SLACK_WEBHOOK_URL" \ |
| 92 | -H 'Content-Type: application/json' \ |
| 93 | -d '{ |
| 94 | "text": "🧪 Test Results: ✅ {{passed}} | ❌ {{failed}} | ⏱️ {{duration}}\n{{failed_details}}" |
| 95 | }' |
| 96 | |
| 97 | |
| 98 | #### TestRail Push (If Configured) |
| 99 | |
| 100 | Invoke `/pw:testrail push` with the JSON results. |
| 101 | |
| 102 | #### HTML Report |
| 103 | |
| 104 | |
| 105 | npx playwright show-report |
| 106 | |
| 107 | |
| 108 | Or if in CI: |
| 109 | |
| 110 | echo "HTML report available at: playwright-report/index.html" |
| 111 | |
| 112 | |
| 113 | ### 5. Trend Analysis (If Historical Data Exists) |
| 114 | |
| 115 | If previous reports exist in `test-reports/`: |
| 116 | Compare pass rate over time |
| 117 | Identify tests that became flaky recently |
| 118 | Highlight new failures vs. recurring failures |
| 119 | |
| 120 | ## Output |
| 121 | |
| 122 | Summary with pass/fail/skip/flaky counts |
| 123 | Failed test details with error messages |
| 124 | Report destination confirmation |
| 125 | Trend comparison (if historical data available) |
| 126 | Next action recommendation (fix failures or celebrate green) |
| 127 |
Details
- Updated
- Aug 30, 2026
- License
- MIT
- Stars on the repo
- ★ 26,349
- Checked
- Source
- alirezarezvani/claude-skills ↗
- Creator
- alirezarezvani · 363 listings
Similar skills
See all →
SkillShow experiment dashboard with results, active loops/ar:ar-status — Experiment Dashboard
SkillTurn a LinkedIn Analytics exportAnalytics dashboard
SkillGenerate a pre-earnings briefing for any stock using YahooEarnings Preview Skill
SkillVet a perf measurement before you report or act on itBenchmark checklist
SkillReport a bug, file an issue, submit a bug reportReport Issue — mobile-app
SkillBuild the agency dashboard across all client brands: health/digital-marketing-pro:agency-dashboardMore from alirezarezvani
SkillResume a paused experiment/ar:ar-resume — Resume Experiment
SkillShow experiment dashboard with results, active loops/ar:ar-status — Experiment Dashboard
SkillStart an autonomous experiment loop with user-selected/ar:loop — Autonomous Experiment Loop
SkillRun a single experiment iteration/ar:run — Single Experiment Iteration
SkillSet up a new autoresearch experiment interactively/ar:setup — Create New Experiment
Skill/cs:boardroom <brief/cs:boardroom — Multi-Role Boardroom Deliberation