report by alirezarezvani/claude-skills
npx skills add https://github.com/alirezarezvani/claude-skills --skill report生成可集成到用户现有工作流程的测试报告。无需新增工具。
检查是否存在最近的测试结果:
ls -la test-results/ playwright-report/ 2>/dev/null
如果没有近期结果,则运行测试:
npx playwright test --reporter=json,html,list 2>&1 | tee test-output.log
读取 JSON 报告:
npx playwright test --reporter=json 2> /dev/null
提取:
检查已配置内容并自动路由:
| 检查项 | 如果发现 | 动作 |
|---|---|---|
TESTRAIL_URL 环境变量 |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 已配置 TestRail |
通过 /pw:testrail push 推送结果 |
SLACK_WEBHOOK_URL 环境变量 | 已配置 Slack | 将摘要发布到 Slack |
.github/workflows/ | GitHub Actions | 通过工件将结果发送到 PR 评论 |
playwright-report/ | HTML 报告器 | 打开或提供报告 |
| 以上均未找到 | 默认 | 生成 Markdown 报告 |
# 测试结果 — {{date}}
## 摘要
- ✅ 通过:{{passed}}
- ❌ 失败:{{failed}}
- ⏭️ 跳过:{{skipped}}
- 🔄 不稳定:{{flaky}}
- ⏱️ 耗时:{{duration}}
## 失败的测试
| 测试 | 错误 | 文件 |
|---|---|---|
| {{name}} | {{error}} | {{file}}:{{line}} |
## 不稳定的测试
| 测试 | 重试次数 | 文件 |
|---|---|---|
| {{name}} | {{retries}} | {{file}} |
## 按项目统计
| 浏览器 | 通过 | 失败 | 耗时 |
|---|---|---|---|
| Chromium | X | Y | Zs |
| Firefox | X | Y | Zs |
| WebKit | X | Y | Zs |
保存到 test-reports/{{date}}-report.md。
curl -X POST "$SLACK_WEBHOOK_URL" \
-H 'Content-Type: application/json' \
-d '{
"text": "🧪 测试结果:✅ {{passed}} | ❌ {{failed}} | ⏱️ {{duration}}\n{{failed_details}}"
}'
使用 JSON 结果调用 /pw:testrail push。
npx playwright show-report
如果在 CI 环境中:
echo "HTML 报告位于:playwright-report/index.html"
如果 test-reports/ 中存在先前的报告:
每周安装量
63
仓库
GitHub 星标数
3.6K
首次出现
6 天前
安全审计
已安装于
codex59
cursor58
github-copilot58
amp58
cline58
kimi-cli58
Generate test reports that plug into the user's existing workflow. Zero new tools.
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
Read the JSON report:
npx playwright test --reporter=json 2> /dev/null
Extract:
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 |
# 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.
curl -X POST "$SLACK_WEBHOOK_URL" \
-H 'Content-Type: application/json' \
-d '{
"text": "🧪 Test Results: ✅ {{passed}} | ❌ {{failed}} | ⏱️ {{duration}}\n{{failed_details}}"
}'
Invoke /pw:testrail push with the JSON results.
npx playwright show-report
Or if in CI:
echo "HTML report available at: playwright-report/index.html"
If previous reports exist in test-reports/:
Weekly Installs
63
Repository
GitHub Stars
3.6K
First Seen
6 days ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex59
cursor58
github-copilot58
amp58
cline58
kimi-cli58
Azure Data Explorer (Kusto) 查询技能:KQL数据分析、日志遥测与时间序列处理
102,600 周安装
阿里云CloudFW云防火墙测试指南 - 最小可行性测试与安全审计
242 周安装
Claude提示词库 - 开发者必备的AI提示词模板集合,含代码审查、系统架构等角色扮演
242 周安装
阿里云云防火墙管理技能:使用OpenAPI和SDK自动化安全配置
242 周安装
Salesforce AI 可视化技能:Nano Banana Pro 生成 ERD、架构图与 UI 线框图
242 周安装
发票图像OCR读取技能 - 自动提取结构化数据,支持PDF/图片双重验证
242 周安装
WPS文字智能助手使用指南 - 24个工具解决Word文档排版、格式、目录问题
242 周安装