Skip to content
🤖 Consolidated, AI-optimized BMAD docs: llms-full.txt. Fetch this plain text file for complete context.
🚀 Build your own BMad modules and share them with the community! Get started or submit to the marketplace.

How to Run Test Design with TEA

Use TEA’s test-design workflow to create comprehensive test plans with risk assessment, NFR planning, and coverage strategies.

System-level (Phase 3):

  • After architecture is complete
  • Before implementation-readiness gate
  • To validate architecture testability
  • To define NFR thresholds, unknowns, and planned evidence before implementation

Epic-level (Phase 4):

  • At the start of each epic
  • Before implementing stories in the epic
  • To identify epic-specific testing needs
  • To refine NFR validation when the epic has security, performance, reliability, scalability, compliance, or maintainability requirements
  • For system-level: Architecture document complete
  • For epic-level: Epic defined with stories
  • Claude Code / Cursor / Windsurf: /bmad-testarch-test-design
  • Codex: $bmad-testarch-test-design
  • Inside a /bmad-tea chat: TD

Full invocation rules: Invoking a TEA Workflow.

TEA will ask if you want:

  • System-level: For architecture testability review and NFR planning (Phase 3)
  • Epic-level: For epic-specific test and NFR planning (Phase 4)

For system-level:

  • Point to your architecture document
  • Reference any ADRs (Architecture Decision Records)
  • Include PRD NFRs, SLO/SLA targets, compliance requirements, and known monitoring needs

For epic-level:

  • Specify which epic you’re planning
  • Reference the epic file with stories
  • Mention any NFR-heavy scenarios or inherited system-level NFR plans

TEA generates test design document(s) based on mode.

Each run saves its progress to its own checkpoint under {test_artifacts}:

RunCheckpoint
System-leveltest-design-progress-system.md
Epic-leveltest-design-progress-epic-{N}.md

The workflow resolves that name in its first step, from the mode and the epic you named. Interrupting a run for one epic and then running test design for another epic leaves the first epic’s checkpoint untouched, so you can come back to it.

Pick [R] Resume to continue. Name the scope you want (for example “resume epic 3”) when checkpoints exist for more than one run; without a scope TEA lists the candidates and asks. TEA refuses to resume a checkpoint that belongs to a different run rather than continuing into it.

Checkpoints written before this behavior existed use the old fixed name test-design-progress.md. Resume picks that file up, asks you to confirm which run it belongs to, and migrates it to the new name.

System-Level Output (TWO Documents):

TEA produces two focused documents for system-level mode:

  1. test-design-architecture.md (for Architecture/Dev teams)

    • Purpose: Architectural concerns, testability gaps, NFR requirements
    • Quick Guide with 🚨 BLOCKERS / ⚠️ HIGH PRIORITY / 📋 INFO ONLY
    • Risk assessment (high/medium/low-priority with scoring)
    • NFR testability requirements: thresholds, unknowns, architecture gaps, planned evidence
    • Testability concerns and architectural gaps
    • Risk mitigation plans for high-priority risks (≥6)
    • Assumptions and dependencies
  2. test-design-qa.md (for QA team)

    • Purpose: Test execution recipe, coverage plan, Sprint 0 setup
    • Test coverage plan (P0/P1/P2/P3 with detailed scenarios + checkboxes)
    • NFR test coverage plan with planned validation tools and evidence artifacts
    • Sprint 0 setup requirements (blockers, infrastructure, environments)

test-design does not make final NFR PASS/CONCERNS/FAIL decisions. It defines the thresholds and evidence that nfr-assess audits later.

Epic-Level Output (ONE Document):

test-design-epic-N.md (combined risk assessment + test plan)

  • Risk assessment for the epic
  • Test priorities (P0-P3)
  • Coverage plan
  • NFR planning when NFRs are in scope
  • Regression hotspots (for brownfield)
  • Integration risks
  • Mitigation strategies
TrackPhase 3 FocusPhase 4 Focus
GreenfieldSystem-level testability + NFR planningPer-epic risk assessment and test plan
BrownfieldSystem-level + existing test baselineRegression hotspots, integration/NFR risks
EnterpriseCompliance-aware testability + NFR evidence planSecurity/performance/compliance focus

System-Level (Two Documents):

  • cluster-search/cluster-search-test-design-architecture.md - Architecture doc with Quick Guide
  • cluster-search/cluster-search-test-design-qa.md - QA doc with test scenarios

Key Pattern:

  • Architecture doc: “ASR-1: OAuth 2.1 required (see QA doc for 12 test scenarios)”
  • QA doc: “OAuth tests: 12 P0 scenarios (see Architecture doc R-001 for risk details)”
  • No duplication, just cross-references
  • Run system-level right after architecture: Early testability review
  • Shift NFRs left: Define thresholds and planned evidence before implementation
  • Run epic-level at the start of each epic: Targeted test planning
  • Update if ADRs change: Keep test design aligned
  • Use output to guide other workflows: Feeds into atdd and automate
  • Use nfr-assess later: Audit evidence after tests, scans, metrics, or logs exist
  • Architecture teams review Architecture doc: Focus on blockers and mitigation plans
  • QA teams use QA doc as implementation guide: Follow test scenarios and Sprint 0 checklist

After test design:

  1. Setup Test Framework: If not already configured
  2. Implementation Readiness: System-level feeds into gate check
  3. Story Implementation: Epic-level guides testing during dev
  4. NFR Evidence Audit: Run nfr-assess after implementation evidence exists