← ClaudeAtlas

testing-strategylisted

Test strategy and quality engineering — the test pyramid, what to test at each layer, meaningful coverage policy, integration and contract testing, E2E for critical journeys, test data and fixtures, flaky-test control, mutation testing, load and security testing, and CI gating. Use when the user says "tests", "testing", "unit test", "integration test", "E2E", "Playwright", "Cypress", "Jest", "pytest", "coverage", "TDD", "flaky", "mocking", "test data", "how do I test this", "we have no tests" or "the tests keep breaking"; when writing tests for new code; and as a pass in any project audit. By Devleck.
Kin9Zeus/senior-engineer-skills · ★ 3 · Testing & QA · score 77
Install: claude install-skill Kin9Zeus/senior-engineer-skills
# Testing Strategy A test suite has one job: **tell you, quickly and truthfully, whether the system still does what it is supposed to do.** Judge every testing decision against that. Coverage percentage, test count and framework choice are proxies, and proxies get gamed. --- ## The pyramid, and why it is that shape ``` ╱──────────╲ E2E few, slow, high confidence ╱ 5-10% ╲ the critical journeys only ╱──────────────╲ ╱ Integration ╲ 20-30% real database, real HTTP layer ╱──────────────────╲ where most real bugs live ╱────────────────────╲ ╱ Unit ╲ 60-70% milliseconds, no I/O ╱────────────────────���───╲ business rules and edge cases ``` The shape follows from cost. A unit test runs in a millisecond and fails precisely; an E2E test takes 30 seconds, is flakier, and tells you only that *something* broke. You want as much signal as possible from the cheap layer, and just enough from the expensive one to know the pieces are actually connected. **Both inversions are failures.** An ice-cream cone (mostly E2E) is slow and flaky, and people stop running it. A suite with no top has never tested that the parts work together — which is where integration bugs live by definition. --- ## What belongs at each layer **Unit** — business rules, calculations, state machines, validation, edge cases, error paths, pure transform