comprehensive-test-strategy
/comprehensive-test-strategy
Definiuje lub audytuje strategię testów modułu lub projektu: macierz pokrycia według ryzyka, podział piramidy testów i priorytety testowania.
- Autor
- charierefiedler ↗
- Repozytorium
- ronce-racine ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 22.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 2
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 22.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Definiuje lub audytuje strategię testów modułu lub projektu: macierz pokrycia według ryzyka, podział piramidy testów i priorytety testowania.
Wyzwalacze z opisu
Oryginalny opis (EN)
Use when defining or auditing the test strategy of a module or whole project - building a coverage matrix by risk, choosing the test pyramid split, prioritizing what to test first, deciding which surfaces deserve which test level - "define the test strategy", "définis la stratégie de test", "coverage matrix by risk", "matrice de couverture". Not for writing the tests of one targeted file - that is `writing-robust-tests`.
Jak działa
- This skill vs. others
- Principle
- Context to gather (before acting)
- Protocol
- Templates
- Traps & rationalizations
- Exit condition
- Tooling
Podgląd SKILL.md
--- name: comprehensive-test-strategy description: Use when defining or auditing the test strategy of a module or whole project - building a coverage matrix by risk, choosing the test pyramid split, prioritizing what to test first, deciding which surfaces deserve which test level - "define the test strategy", "définis la stratégie de test", "coverage matrix by risk", "matrice de couverture". Not for writing the tests of one targeted file - that is `writing-robust-tests`. version: 1.0.1 metadata: last-reviewed: 2026-08-08 category: test --- # Comprehensive Test Strategy - what to test, at which level, in what order > If the current repo has a project-specific test-strategy skill, it wins - it knows the surfaces, the commands and the project's tracker. ## This skill vs. others - **This skill** when: "test strategy", "full coverage", "where to start", auditing/designing the strategy of a module or project, mapping the surfaces and prioritizing. Output = a **matrix** + an **ordered plan**, not test code. - **`writing-robust-tests`** instead if: the target is **one specific file** whose tests must be written/hardened (ISTQB design, page object, proof of failure). - **`superpowers:test-driven-development`** instead if: the code does not exist yet (test first, red-green loop on a feature). - Normal flow: this skill produces the matrix + the plan → case-by-case delegation to `writing-robust-tests` or TDD. ## Principle - **Map before executing** - every testable surface identified and classified before writing a single assertion. - **Risk-based prioritization** - security, data integrity and multi-tenant isolation first; cosmetics last. The test budget goes where an incident costs the most. - **Conscious level choice** - the pyramid (unit / integration-contract / E2E) is a deliberate cost/confidence trade-off, not a reflex. - **A declared gap beats false coverage** - a green test that does not exercise the intended path is worse than an identified hole. ## Context to gather (before acting) - Framework(s) + commands: read `package.json` / `Cargo.toml` / `Makefile` / `pyproject.toml` / CI config. - Project surfaces: pages/screens, API endpoints (OpenAPI/routes), persisted entities and their invariants, authorization/isolation boundaries. - Existing tests: locate them (`*.spec.*`, `*.test.*`, `tests/` folders), read a neighbour to copy its conventions. - The current coverage baseline if any, and the thresholds (quality gates) already in place. ## Protocol 1. **Map the surfaces.** List everything testable: API routes, screens, forms, error pages (missing resource, ID from another org), business invariants, isolation boundaries. One matrix row per surface. 2. **Classify by risk (priority P0/P1/P2).** - **P0**: authentication, authorization, multi-tenant isolation, data integrity/loss, payment. A defect here = security incident or corruption. - **P1**: main business journeys, form validation (client + server), API contracts, error states. - **P2**: sort/filter/pagination, empty states, cosmetics, rare low-impact cases. 3. **Choose the level (pyramid ~70/20/10).** - **~70% unit**: pure logic, invariants, branches - fast, no I/O. - **~20% integration-contract**: handlers + persistence, API contract (snapshot), authorization policies against a real database. - **~10% E2E**: critical end-to-end journeys, real backend + seeded data. Expensive and slow → reserved for the highest-risk paths. - Justify every placement high in the pyramid: an E2E that could have been a contract test is waste. 4. **Gap analysis.** For each row: `Covered` (existing test) / `Partial` (exists but misses cases) / `Absent`. Produce the `Surface · Priority · Level · State · Action` report. 5. **Ordered execution plan.** P0 first (blocking: create them if missing), then P1, then P2. For each planned-but-absent entry, create a follow-up ticket (via the project tracker) rather than writing everything at once. 6. **Delegation.** Hand each surface to cover to `writing-robust-tests` (existing code) or the TDD flow (code to write). This skill does not descend to the file level. Copy-paste checklist: ``` - [ ] Surfaces mapped (one matrix row each) - [ ] Each surface classified P0/P1/P2 by risk - [ ] Test level chosen and justified (70/20/10 pyramid) - [ ] Gap analysis: Covered / Partial / Absent per surface - [ ] Ordered plan P0 → P1 → P2, tickets created for the absent ones - [ ] Surfaces delegated to the right skill (writing-robust-tests / TDD) ``` ## Templates Coverage matrix (header to fill in): | Surface | Level | Framework | Priority | State | Action | |---------|--------|-----------|----------|------|--------| | Authentication (login/logout/refresh) | E2E + contract | (to fill in) | P0 | Partial | complete refresh | | Isolation between organizations/tenants | integration + E2E | (to fill in) | P0 | Absent | create | | API endpoint contract | snapshot/contract | (to fill in) | P0/P1 | … | … | | Form validation (client + server) | unit + E2E | (to fill in) | P1 | … | … | | Error pages (non-existent ID, resource of another tenant) | E2E | (to fill in) | P1 | … | … | | Business invariants | unit | (to fill in) | P1 | … | … | | Lists (sort/filter/pagination/empty state) | unit + E2E | (to fill in) | P2 | … | … | Expected output (final summary): ``` Matrix : X surfaces identified Risk : a P0 | b P1 | c P2 Gaps : Y absent | Z partial Plan : N P0 tests to create (blocking), M P1 tests Tickets: <list of follow-up tickets created> ``` ## Traps & rationalizations | Excuse | Reality | |--------|---------| | "We test everything the same, we'll figure out the order later" | Without risk prioritization the budget drains into cosmetics while tenant isolation stays bare. P0 first, always. | | "Let's do everything in E2E, it's the most realistic" | E2E = slow, fragile, expensive. The majority must be unit. An E2E that could have been a contract test is waste. | | "Coverage is at 85%, so it's covered" | The % does not tell you whether the risky path is exercised. A test that does not break when you break the code covers nothing. | | "We mock the whole API to make it stable" | An E2E with a fully-mocked API becomes a UI test: it will never catch a backend contract break. | | "No time to map, I'm starting to write" | Without a matrix you test what is easy, not what is risky. The map is the output, not a preamble. | ## Exit condition - [ ] Complete matrix: all testable surfaces listed and classified by risk. - [ ] Each surface has a justified test level (roughly respecting the pyramid). - [ ] Gap analysis produced (Covered / Partial / Absent) with actions. - [ ] Ordered plan P0 → P1 → P2; follow-up tickets created for the absent ones. - [ ] Surfaces to cover delegated to the right skill (never write the tests here). ## Tooling - `reference/testing-advanced.md` - advanced techniques loaded on demand: quality gates, mutation testing, fuzzing, API snapshots, UAT, pyramid detail. Read it when the strategy must rely on automated safeguards.
Pliki w paczce (2)
- SKILL.md 7 KB
- reference/testing-advanced.md 5 KB
Wersje
W bazie nie ma innych skilli o nazwie comprehensive-test-strategy.
Identyczna treść występuje jeszcze w 1 innych folderach na GitHubie. Tu pokazujemy jedną, najlepiej ocenioną kopię.
Migawka bazy z 13.11.2026 · wersja paczki d0f205776241 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 1 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100proof-strategy
Tworzy strategię testów dla projektu lub funkcji: mapę ryzyka, decyzje o typach testów, cele pokrycia i konfigurację CI. - 100qa-strategy
Tworzy strategię testów, macierz pokrycia i plan priorytetyzacji opartej na ryzyku, wskazując zakres i głębokość testów. - 90qa-test-strategy
Dobiera rodzaje testów dla funkcji: jednostkowe, integracyjne, e2e i kontraktowe, ustala cele pokrycia i tworzy macierz do realizacji. - 90audit-testing
Audytuje strategię testów, ich pokrycie, rodzaje, testy niestabilne i testy chaosu oraz plany testów. - 90fec-testing-strategy
Planuje i przegląda strategię testowania frontendu: dobór warstwy testów według ryzyka i mapa pokrycia dla testów statycznych, jednostkowych, komponentowych, integracyjnych, E2E, wizualnych, dostępności, wydajności i bramek CI. - 90testing-symfony
Wyznacza strategię testów dla Symfony 8.1 i PHP 8.5: pisanie testów, ocena pokrycia i konfiguracja testowania projektu.