Chuyển đến nội dung
Skillpedia
Kiểm thử29k · #9480

report

Skill này làm gì

Skill này khiến agent chạy hoặc đọc các kiểm thử trình duyệt của bạn và viết bản tóm tắt những gì đạt, thất bại và không ổn định. Skill dành cho lập trình viên và trưởng nhóm muốn có cập nhật trạng thái kiểm thử đơn giản.

Khi nào nên dùng

  • ✓Khi ai đó hỏi hôm nay các kiểm thử chạy thế nào.
  • ✓Khi bạn cần tóm tắt các kiểm thử thất bại và không ổn định cho cả đội.
  • ✓Khi pipeline CI của bạn kết thúc và bạn muốn kết quả nằm ở một nơi.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/alirezarezvani/claude-skills/blob/main/engineering-team/playwright-pro/skills/report/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Các kiểm thử của chúng tôi chạy thế nào? Hãy cho tôi tóm tắt ngắn về những gì thất bại.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent đọc kết quả kiểm thử mới nhất, hoặc chạy kiểm thử nếu chưa có kết quả. Nó đếm số kiểm thử đạt, thất bại, bỏ qua và không ổn định, rồi viết bản tóm tắt markdown và gửi đến nơi cấu hình của bạn chỉ định.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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)
Câu hỏi thường gặp

Skill có cần công cụ đặc biệt để tạo báo cáo không?

Không. Skill dùng kết quả kiểm thử Playwright và một bản tóm tắt markdown chuẩn.

Nếu chưa có kết quả kiểm thử thì sao?

Skill chạy kiểm thử trước để tạo ra kết quả.

Báo cáo được gửi đến đâu?

Báo cáo markdown luôn được tạo. Nó cũng có thể gửi đến TestRail, Slack hoặc GitHub Actions nếu các công cụ này đã được cấu hình.

Chi tiết

Mô tả gốc của tác giả

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

repo: alirezarezvani/claude-skills

Độ phổ biến

Sao GitHub
29k
Vị trí xếp hạng
#9480
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự