Przejdź do treści
Biblioteka skilli
Programowanie · Planowanie

test-strategy

/test-strategy

Projektuje praktyczną strategię testów: piramidę, podział na jednostkowe, integracyjne, e2e i kontraktowe, a także mutacje i szybkość CI.

Licencja
MIT
Ostatnia zmiana repozytorium
11.11.2026

Ocena i bezpieczeństwo

90/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść25 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 11.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

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

  1. Map requirements to tests
  2. Pyramid (adapt to the architecture)
  3. Writing good tests
  4. Quality signals (use together)
  5. E2E (Playwright/Cypress)
  6. CI
  7. Output
Sekcje z nagłówków SKILL.md, w oryginale · 39 linii, 403 słów
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

RepozytoriumWynikLicencja
Ta strona · swap-cameroon/kuro-antigravity-config90MIT
petrkindlmann/qa-skills100MIT
sallaumen/elixir-agent-kit100MIT
nimadorostkar/Claude-Skills-collection100MIT
Rene-Roscher/skills100Apache-2.0
reddygopalkrishna/developer-agent-skills100MIT
devpilotX/ai-skill-ai100MIT
aethrox/doctrine100MIT
aks-builds/quality-skills100MIT

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.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.