plan-tests
Plan Tests
Section titled “Plan Tests”Spine position: Between
slice-tasksandplan-workfor epics withrisk: P0|P1. Optional (can be waived instate.yaml) for P2/P3.
Bridges the gap between slicing and planning by systematically designing the test suite as a first-class system. Produces specs/tech-architecture/eNN-TEST_PLAN_LATEST.md.
Pre-flight
Section titled “Pre-flight”- Read
specs/epics/eNN-*/story list.
Core Workflow
Section titled “Core Workflow”- Analyze Epic: Read sliced stories in the active epic capsule.
- Risk Assessment: Map behaviors to P0–P3 risk tiers.
- Level Strategy: Classify each scenario (Unit, Integration, E2E).
- Fixture Design: Plan factories, network intercepts, mocks (see REFERENCE.md).
- NFR Plan: Define verifiable commands for Non-Functional Requirements. Skip if
--lite. - Publish: Generate
specs/tech-architecture/eNN-TEST_PLAN_LATEST.md.
Hard Gates & Guardrails
Section titled “Hard Gates & Guardrails”- DO NOT write test code or production code during this skill.
- Scenario ID format MUST be:
SC-eNNsYY-P{0|1|2|3}-NN. plan-workMUST reference these scenario IDs in its §17 Gherkin acceptance criteria.- Default to pushing tests to the lowest possible level.
Execution Modes
Section titled “Execution Modes”$bmad plan-tests: Standard execution.$bmad plan-tests --lite: Skips NFRs and complex fixture planning.
Verify
Section titled “Verify”→ verify: ls specs/tech-architecture/*-TEST_PLAN_LATEST.md 2>/dev/null | head -1 && echo OK || echo "SKIP: no test plan yet — EPIC not set or not generated"
Handoff
Section titled “Handoff”Gate: READY -> next: plan-work Writes: state.yaml handoff.next_skill = plan-work