Smart Test Reporting
Generates test reports for Playwright test runs, parsing results and routing them to configured destinations like Slack, TestRail, or HTML. It produces a markdown summary with pass/fail counts, failed test details, and optional trend analysis.
✨ What it does
- Runs Playwright tests if no recent results exist.
- Parses JSON report to extract totals, durations, failures, and flaky tests.
- Automatically detects report destination (TestRail, Slack, GitHub Actions, HTML).
- Generates a markdown report with summary, failed tests, flaky tests, and per-project breakdown.
- Posts summary to Slack if webhook is configured.
- Performs trend analysis if historical reports exist.
🎯 When to use it
- When the user asks for a test report or results summary.
- When the user wants to know how tests went or their status.
- When the user needs a test dashboard or show results.
- When the user wants to share results with a team via Slack or TestRail.
🚀 How to use
Trigger: /pw:testrail
Trigger by asking for a test report, results summary, test status, show results, test dashboard, or how did tests go. The skill expects Playwright test results to exist or will run tests. It then parses results and generates a markdown report, optionally sending to Slack or TestRail if configured.
Example prompts:
Generate a test report
Show me the test results summary
📄 Output: A markdown report saved to test-reports/{{date}}-report.md, plus optional Slack message, TestRail push, or HTML report.
📦 Add this skill to Claude Code
# 1. Get the skills repo
git clone --depth 1 https://github.com/alirezarezvani/claude-skills /tmp/claude-skills
# 2. Copy this skill into your project (or ~/.claude/skills for all projects)
mkdir -p .claude/skills
cp -r /tmp/claude-skills/engineering-team/playwright-pro/skills/report .claude/skills/reportSkill source: engineering-team/playwright-pro/skills/report/SKILL.md
⚠️ Good to know
Requires Playwright tests to be runnable; if no results exist, it will run tests which may take time.
❓ FAQ
What does the skill do if no test results exist?
It runs the Playwright tests with JSON, HTML, and list reporters to generate results.
How does the skill decide where to send the report?
It checks for environment variables like TESTRAIL_URL and SLACK_WEBHOOK_URL, and for .github/workflows or playwright-report directory, routing accordingly.
Does the skill always generate a markdown report?
Yes, a markdown report is always generated and saved to test-reports/{{date}}-report.md.
🤖 Overview, features, install steps and FAQ were generated from the project's SKILL.md on Sep 4, 2026. Always check the original source before running commands.