# Test Strategy > Fill in each section for the target project or feature. Replace `<...>` placeholders with concrete values. Delete guidance notes once populated. ## Context | Field | Value | |-------|-------| | Project / Feature | | | Version / Release | | | Author | | | Date | | | Status | Draft / In Review / Approved | ### Scope ### Out of Scope ## Risk Tiers Assign each area a risk tier (P0–P3) using probability × impact scoring. See [risk-based-testing.md](../references/risk-based-testing.md) and [assets/risk-matrix-grid.md](../assets/risk-matrix-grid.md) for the scoring grid. | Area / Component | Probability (1–5) | Impact (1–5) | Score | Tier | |------------------|--------------------:|-------------:|------:|------| | | | | | P0 / P1 / P2 / P3 | | | | | | P0 / P1 / P2 / P3 | | | | | | P0 / P1 / P2 / P3 | ### Tier Definitions | Tier | Score Range | Coverage Approach | |------|-------------|-------------------| | P0 — Critical | 20–25 | Exhaustive: every path, every edge case | | P1 — High | 12–19 | All happy paths + known failure modes | | P2 — Medium | 6–11 | Happy paths + common failure modes | | P3 — Low | 1–5 | Smoke test only; defer detailed testing | ## Test Levels | Level | What It Covers | Framework / Tool | Target Coverage by Tier | |-------|---------------|-----------------|------------------------| | Unit | | | P0: ___% / P1: ___% / P2: ___% / P3: ___% | | Integration | | | P0: ___% / P1: ___% / P2: ___% / P3: ___% | | End-to-End | | | P0: ___% / P1: ___% / P2: ___% / P3: ___% | | Exploratory | | SBTM charter | Sessions per sprint: ___ | > The pyramid shape is a heuristic, not dogma. Adjust level allocation to match your system's risk profile. See [test-strategy.md](../references/test-strategy.md). ## Coverage Approach | Dimension | How It Is Measured | Diagnostic Target | Notes | |-----------|--------------------|-------------------|-------| | Code coverage | | | Coverage is diagnostic, not a goal | | Requirement coverage | | Every AC has ≥ 1 test | | | Risk coverage | | Every P0/P1 risk has tests | | | Mutation score | | | Optional; measures test effectiveness | ## Environment | Environment | Purpose | Data Strategy | Access | |-------------|---------|---------------|--------| | | | | | | | | | | | | | | | > Never use production PII in test environments. See [test-data-management.md](../references/test-data-management.md). ## Execution Plan | Phase | What Runs | Trigger | Cadence | |-------|-----------|---------|---------| | Pre-merge | | PR opened / updated | Every PR | | Post-merge | | Merge to main | Every merge | | Nightly | | Scheduled | Daily | | Release | | Release candidate | Per release | ## Automation Targets | Area | Current State | Target State | Priority | |------|--------------|--------------|----------| | | | | P0 / P1 / P2 / P3 | | | | | P0 / P1 / P2 / P3 | ## Exit Criteria The test strategy is complete when: - [ ] Every in-scope area has a risk tier assigned (P0–P3) - [ ] Test level allocation is defined per tier - [ ] Coverage dimensions and diagnostic targets are set - [ ] Environment and data strategy are specified - [ ] Execution cadence is agreed with the team - [ ] Automation targets have owners and timelines - [ ] Exit criteria for each tier are defined below ### Per-Tier Exit Criteria | Tier | Exit Criteria | |------|--------------| | P0 | | | P1 | | | P2 | | | P3 | |