Testing Strategy
by @clawkk
Deep testing strategy workflow—risk mapping, test pyramid, levels of isolation, flakiness, data, CI gates, and quality signals beyond coverage %. Use when de...
clawhub install testing-strategy📖 About This Skill
name: testing-strategy description: Deep testing strategy workflow—risk mapping, test pyramid, levels of isolation, flakiness, data, CI gates, and quality signals beyond coverage %. Use when designing test approach, fighting flaky CI, or restructuring QA vs dev ownership.
Testing Strategy (Deep Workflow)
Testing strategy answers: what failures would hurt users, what’s cheap to catch, and what signals we trust in CI. Coverage percentage alone is a weak proxy—risk alignment matters.
When to Offer This Workflow
Trigger conditions:
Initial offer:
Use six stages: (1) risk & quality goals, (2) pyramid & layers, (3) design per layer, (4) data & environments, (5) CI & gates, (6) observability of test health. Confirm release cadence and regulatory needs.
Stage 1: Risk & Quality Goals
Goal: Connect tests to user impact and business risk.
Questions
1. Worst failure categories: payments wrong, data leak, outage, wrong advice (AI)? 2. SLO for critical paths—what must never break silently? 3. Change velocity—how fast must PRs merge safely?
Output
Risk register → test priorities (not every line equally important).
Exit condition: Top 5 risks have explicit test intent.
Stage 2: Pyramid & Layers
Goal: Many fast tests, some integration, few e2e—proportion tuned to risk.
Layers (typical)
Anti-patterns
Exit condition: Written policy: what belongs in each layer for this codebase.
Stage 3: Design Per Layer
Goal: Tests are readable, stable, and debuggable.
Unit
Integration
E2E
Exit condition: Flake classification process exists (quarantine + ticket).
Stage 4: Data & Environments
Goal: Representative data without PII leakage.
Practices
Exit condition: Data generation documented; secrets not in tests.
Stage 5: CI & Gates
Goal: Fast feedback on PRs; nightly heavier suites if needed.
Tiers
Metrics
Exit condition: Merge policy tied to green checks; exceptions process defined.
Stage 6: Test Health & Culture
Goal: Tests are owned like features.