Langsung ke konten
Skillpedia
Testing29k Β· #9473

coverage

Fungsinya

Skill ini membuat agent mendaftar bagian aplikasi Anda dan membandingkannya dengan tes yang sudah Anda miliki. Skill ini untuk pengembang dan staf QA yang ingin tahu di mana pengujian masih kurang.

Kapan dipakai

  • βœ“Saat Anda ingin tahu halaman atau fitur mana yang belum memiliki tes.
  • βœ“Saat Anda merencanakan apa yang akan diuji berikutnya dan ingin celahnya diurutkan.
  • βœ“Saat seseorang meminta laporan cakupan tes kepada Anda.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/alirezarezvani/claude-skills/blob/main/engineering-team/playwright-pro/skills/coverage/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œTunjukkan bagian aplikasi saya mana yang belum memiliki tes, dimulai dari yang paling penting.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent memetakan rute, komponen, dan endpoint API Anda, lalu membaca file tes yang ada untuk melihat apa yang dicakupnya. Agent membuat tabel area yang tercakup dan yang hilang, serta mengurutkan celahnya berdasarkan dampak bisnis.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

Analyze Test Coverage Gaps

Map all testable surfaces in the application and identify what's tested vs. what's missing.

Steps

1. Map Application Surface

Use the Explore subagent to catalog:

Routes/Pages:

  • Scan route definitions (Next.js app/, React Router config, Vue Router, etc.)
  • List all user-facing pages with their paths

Components:

  • Identify interactive components (forms, modals, dropdowns, tables)
  • Note components with complex state logic

API Endpoints:

  • Scan API route files or backend controllers
  • List all endpoints with their methods

User Flows:

  • Identify critical paths: auth, checkout, onboarding, core features
  • Map multi-step workflows

2. Map Existing Tests

Scan all *.spec.ts / *.spec.js files:

  • Extract which pages/routes are covered (by page.goto() calls)
  • Extract which components are tested (by locator usage)
  • Extract which API endpoints are mocked or hit
  • Count tests per area

3. Generate Coverage Matrix

## Coverage Matrix

| Area | Route | Tests | Status |
|---|---|---|---|
| Auth | /login | 5 | βœ… Covered |
| Auth | /register | 0 | ❌ Missing |
| Auth | /forgot-password | 0 | ❌ Missing |
| Dashboard | /dashboard | 3 | ⚠️ Partial (no error states) |
| Settings | /settings | 0 | ❌ Missing |
| Checkout | /checkout | 8 | βœ… Covered |

4. Prioritize Gaps

Rank uncovered areas by business impact:

  1. Critical β€” auth, payment, core features β†’ test first
  2. High β€” user-facing CRUD, search, navigation
  3. Medium β€” settings, preferences, edge cases
  4. Low β€” static pages, about, terms

5. Suggest Test Plan

For each gap, recommend:

  • Number of tests needed
  • Which template from templates/ to use
  • Estimated effort (quick/medium/complex)
## Recommended Test Plan

### Priority 1: Critical
1. /register (4 tests) β€” use auth/registration template β€” quick
2. /forgot-password (3 tests) β€” use auth/password-reset template β€” quick

### Priority 2: High
3. /settings (4 tests) β€” use settings/ templates β€” medium
4. Dashboard error states (2 tests) β€” use dashboard/data-loading template β€” quick

6. Auto-Generate (Optional)

Ask user: "Generate tests for the top N gaps? [Yes/No/Pick specific]"

If yes, invoke /pw:generate for each gap with the recommended template.

Output

  • Coverage matrix (table format)
  • Coverage percentage estimate
  • Prioritized gap list with effort estimates
  • Option to auto-generate missing tests
Pertanyaan umum

Apakah skill ini juga menulis tes yang hilang?

Tidak. Skill ini menemukan dan mengurutkan celahnya. Menulis tesnya adalah langkah terpisah.

Jenis aplikasi apa yang dipahami skill ini?

Skill ini memahami pengaturan rute yang umum, seperti Next.js, React Router, dan Vue Router, serta file tes Playwright.

Apa isi tabel cakupan?

Setiap area mendapat status, seperti tercakup, sebagian, atau hilang, beserta jumlah tesnya.

Detail

Deskripsi asli dari pembuat

Use when asked what's not tested or for test coverage gaps ('test coverage', 'coverage gaps', 'missing tests', 'what needs testing'). Maps untested pages and flows.

repo: alirezarezvani/claude-skills

Popularitas

Bintang GitHub
29k
Peringkat
#9473
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa