test-strategy
/test-strategy
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.
- Author
- swap-cameroon ↗
- Repository
- kuro-antigravity-config ↗
- Licence
- MIT
- Last repository change
- 11.11.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 11.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
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.
Original author 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.
How it works
- Map requirements to tests
- Pyramid (adapt to the architecture)
- Writing good tests
- Quality signals (use together)
- E2E (Playwright/Cypress)
- CI
- Output
SKILL.md preview
--- 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.
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · 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 |
Database snapshot: 13.11.2026 · package version 8f0697973f6d (SHA-256 digest of the entire package)
Downloads in the last 30 days: 2 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100testing-strategy
Comprehensive testing methodology, test pyramid, deterministic unit tests, and integration testing. Use when designing test suites or debugging flaky tests. - 95testing-quality-engineering
Use this capability for test plans, unit/integration/e2e tests, contract tests, property tests, snapshot strategy, mocks, test data, coverage, flaky tests, regression suites, quality gates, AI evals, and release verification. Trigger on test, QA, coverage, flaky, regression,… - 95pact-testing-strategies
Testing strategies, test pyramid guidance, and quality assurance patterns for PACT Test phase. Use when: designing test suites, implementing unit tests, integration tests, E2E tests, performance testing, security testing, or determining test coverage priorities. Triggers on:… - 95qa-strategy
Testing strategy and QA patterns. Use for test pyramid design, E2E test architecture, test automation frameworks, performance testing, and bug triage processes. - 100testing-strategy
Testing approach covering unit/integration/e2e split, what to test, AAA test structure, mocking strategies, and coverage targets. Use when writing tests, planning test coverage, or reviewing test quality. - 90testing-strategy
Use when designing test architecture, building API test suites, validating API contracts, setting up component or E2E testing, managing test data, debugging flaky tests, reviewing coverage strategy, or organizing test files. Covers test pyramid, mocking (MSW), frontend (React…