test-strategy
/test-strategy
Projektuje praktyczną strategię testów: piramidę, podział na jednostkowe, integracyjne, e2e i kontraktowe, a także mutacje i szybkość CI.
- Autor
- swap-cameroon ↗
- Repozytorium
- kuro-antigravity-config ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 11.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 11.11.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
Projektuje praktyczną strategię testów: piramidę, podział na jednostkowe, integracyjne, e2e i kontraktowe, a także mutacje i szybkość CI.
Oryginalny opis (EN)
Design a pragmatic test strategy: pyramid, unit/integration/e2e/contract split, fixtures, flakiness, coverage and mutation testing, CI speed. Use when planning tests, fixing weak or flaky suites, or deciding what to test.
Jak działa
- Map requirements to tests
- Pyramid (adapt to the architecture)
- Writing good tests
- Quality signals (use together)
- E2E (Playwright/Cypress)
- CI
- Output
Podgląd SKILL.md
--- name: test-strategy description: "Design a pragmatic test strategy: pyramid, unit/integration/e2e/contract split, fixtures, flakiness, coverage and mutation testing, CI speed. Use when planning tests, fixing weak or flaky suites, or deciding what to test." license: MIT metadata: version: "1.0.0" --- # Test strategy Framework-specific guidance: `spring-testing`, `api-contract-testing`, `angular-developer` (testing refs), `perf` for load. This skill decides **what to test where**. ## Map requirements to tests Every acceptance criterion (`AC-n.m` from the PRD, see `product-requirements`) has at least one automated test that cites it. Risky areas (money, auth, data migration, concurrency) get more depth than CRUD. ## Pyramid (adapt to the architecture) | Layer | Scope | Share | Speed target | | :-- | :-- | :-- | :-- | | Unit | pure logic, one class/function, no IO | ~70% | ms | | Integration | real DB/queue via Testcontainers, HTTP layer, repositories | ~20% | seconds | | Contract | consumer/provider API (OpenAPI, Pact) | as needed | seconds | | E2E | few critical user journeys through the real UI/stack | ~5-10% | minutes | Prefer testing behavior at the lowest layer that can observe it. Do not mock what you own; fake or containerize external systems; mock only at boundaries you do not control. ## Writing good tests - Arrange-Act-Assert; one behavior per test; name states behavior (`rejects_expired_token`). - Deterministic: inject clock, random seeds, IDs; no sleeps (wait on conditions); no shared mutable state; independent and order-agnostic; isolated data per test. - Assert outcomes, not implementation details (avoid verifying private calls). - Builders/fixtures for data; property-based tests for parsers, serializers and invariants (Hypothesis, fast-check, jqwik). - Test the unhappy paths: validation, authz denial, timeouts, retries, partial failure, idempotency, concurrency. ## Quality signals (use together) - Line/branch coverage as a **floor** (e.g. 80% on changed code), never a target to game. - **Mutation testing** (PIT, Stryker, mutmut) on core domain code: surviving mutants reveal weak assertions. - Flake rate < 1%: quarantine with an owner and a deadline, then fix (`systematic-debugging`). - Defect escape analysis: each production bug adds a regression test at the right layer. ## E2E (Playwright/Cypress) Stable selectors (`data-testid`/roles), no UI login repetition (seed auth state), network stubbing only for third parties, traces/screenshots on failure, run against an ephemeral environment, include accessibility checks (axe) on key pages. ## CI Run fast tests on every commit, full suite on PR/merge, E2E on merge and nightly; parallelize and shard; cache dependencies; fail fast; publish reports/artifacts. Gate: all green + coverage floor + no new flaky tests. ## Output A short `TEST_PLAN.md`: risk areas, layer per risk, tooling, environments, data strategy, exit criteria. State what is not covered and why.
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · swap-cameroon/kuro-antigravity-config | 90 | MIT |
| petrkindlmann/qa-skills | 100 | MIT |
| sallaumen/elixir-agent-kit | 100 | MIT |
| nimadorostkar/Claude-Skills-collection | 100 | MIT |
| Rene-Roscher/skills | 100 | Apache-2.0 |
| reddygopalkrishna/developer-agent-skills | 100 | MIT |
| devpilotX/ai-skill-ai | 100 | MIT |
| aethrox/doctrine | 100 | MIT |
| aks-builds/quality-skills | 100 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki 8f0697973f6d (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100testing-strategy
Opisuje metodykę testów: piramidę, deterministyczne testy jednostkowe i integracyjne oraz diagnozę niestabilnych testów. - 95testing-quality-engineering
Planuje testy jednostkowe, integracyjne, kontraktowe i właściwościowe, a także regresję, bramki jakości i ewaluacje AI. - 95pact-testing-strategies
Doradza strategie testów w fazie PACT Test, czyli piramidę testów, testy jednostkowe, integracyjne i E2E oraz pokrycie kodu. - 95qa-strategy
Projektuje strategię testów: piramidę testów, architekturę E2E, wydajność i proces triage błędów. - 100testing-strategy
Planuje podział testów na jednostkowe, integracyjne i end-to-end, dobiera mocki i określa cele pokrycia kodu. - 90testing-strategy
Projektuje architekturę testów: piramidę, testy API i komponentów, MSW, Playwright i integrację z CI.