Files
magnus919_agent-skills/qa-methodology/templates/test-strategy.md
usernameandfactory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> 332578766d feat(qa-methodology): add 5 fillable templates and 3 assets
Templates: test-strategy.md, risk-register.md, exploratory-charter.md,
bug-report.md, verification-plan.md — all with placeholder fields.

Assets: risk-matrix-grid.md (5x5 P×I grid consistent with
risk-based-testing.md and risk-prioritize.py),
test-design-techniques-checklist.md, qa-definition-of-done.md.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
2026-08-01 18:18:44 -04:00

4.5 KiB
Raw Permalink Blame History

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

<What is in scope for this strategy? List the components, features, or services under test.>

Out of Scope

<What is explicitly excluded and why?>

Risk Tiers

Assign each area a risk tier (P0P3) using probability × impact scoring. See risk-based-testing.md and assets/risk-matrix-grid.md for the scoring grid.

Area / Component Probability (15) Impact (15) Score Tier
<area 1> P0 / P1 / P2 / P3
<area 2> P0 / P1 / P2 / P3
<area 3> P0 / P1 / P2 / P3

Tier Definitions

Tier Score Range Coverage Approach
P0 — Critical 2025 Exhaustive: every path, every edge case
P1 — High 1219 All happy paths + known failure modes
P2 — Medium 611 Happy paths + common failure modes
P3 — Low 15 Smoke test only; defer detailed testing

Test Levels

Level What It Covers Framework / Tool Target Coverage by Tier
Unit <e.g., business logic, validators> P0: ___% / P1: ___% / P2: ___% / P3: ___%
Integration <e.g., API contracts, service boundaries> P0: ___% / P1: ___% / P2: ___% / P3: ___%
End-to-End <e.g., critical user journeys> P0: ___% / P1: ___% / P2: ___% / P3: ___%
Exploratory <e.g., new features, unknown-risk areas> 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.

Coverage Approach

Dimension How It Is Measured Diagnostic Target Notes
Code coverage <e.g., 80% line on P0 modules> Coverage is diagnostic, not a goal
Requirement coverage <traceability matrix / RTM> Every AC has ≥ 1 test
Risk coverage Every P0/P1 risk has tests
Mutation score <tool, e.g., PIT/Stryker/mutmut> <target % on critical paths> Optional; measures test effectiveness

Environment

Environment Purpose Data Strategy Access
<e.g., local / CI> <unit + integration> <fixtures / factories>
<e.g., staging> <integration + E2E> <masked subset / synthetic>
<e.g., perf> <load / soak>

Never use production PII in test environments. See test-data-management.md.

Execution Plan

Phase What Runs Trigger Cadence
Pre-merge <unit + lint + fast integration> PR opened / updated Every PR
Post-merge <full integration + E2E> Merge to main Every merge
Nightly <full regression + perf smoke> Scheduled Daily
Release <full suite + exploratory + security scan> Release candidate Per release

Automation Targets

Area Current State Target State Priority
<area 1> <manual / partial / automated> P0 / P1 / P2 / P3
<area 2> <manual / partial / automated> P0 / P1 / P2 / P3

Exit Criteria

The test strategy is complete when:

  • Every in-scope area has a risk tier assigned (P0P3)
  • 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 <e.g., 100% path coverage, zero open critical defects, mutation score ≥ ___%>
P1 <e.g., all happy paths + failure modes pass, zero open high defects>
P2 <e.g., happy paths pass, known issues documented>
P3 <e.g., smoke suite green>