Skip to content
Skills Library
Programming · Planning

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.

Licence
MIT
Last repository change
11.11.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 11.11.2026, without references to retired models or APIs.

Licence

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

  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
Original SKILL.md headings · 39 lines, 403 words
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

RepositoryScoreLicence
This page · 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

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…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.