Skip to content
Skillpedia
Testing29k · #9480

report

What it does

This skill makes the agent run or read your browser tests and write a summary of what passed, failed and was flaky. It is for developers and team leads who want simple test status updates.

When to use it

  • ✓When someone asks how the tests went today.
  • ✓When you need a summary of failed and flaky tests for your team.
  • ✓When your CI pipeline finishes and you want the results in one place.

Skill link

https://github.com/alirezarezvani/claude-skills/blob/main/engineering-team/playwright-pro/skills/report/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/alirezarezvani/claude-skills/blob/main/engineering-team/playwright-pro/skills/report/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“How did our tests go? Give me a short summary of what failed.”

5 new skills a week. 1 minute to read.

How it works

The agent reads the latest test results, or runs the tests if none exist. It counts passed, failed, skipped and flaky tests, then writes a markdown summary and sends it wherever your setup points.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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)
FAQ

Does it need a special tool to create the report?

No. It uses the Playwright test results and a standard markdown summary.

What happens if no test results exist yet?

The skill runs the tests first to create them.

Where does the report go?

A markdown report is always made. It can also go to TestRail, Slack or GitHub Actions if those are configured.

Details

Original description by the author

Use when asked for a test report or results summary ('test report', 'test status', 'how did tests go').

repo: alirezarezvani/claude-skills

Popularity

GitHub stars
29k
Ranking position
#9480
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills