How to Run Test Design with TEA
How to Run Test Design with TEA
Section titled â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.
When to Use This
Section titled âWhen to Use Thisâ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
Prerequisites
Section titled âPrerequisitesâ- For system-level: Architecture document complete
- For epic-level: Epic defined with stories
1. Run the Test Design Workflow
Section titled â1. Run the Test Design Workflowâ- Claude Code / Cursor / Windsurf:
/bmad-testarch-test-design - Codex:
$bmad-testarch-test-design - Inside a
/bmad-teachat:TD
Full invocation rules: Invoking a TEA Workflow.
2. Specify the Mode
Section titled â2. Specify the Modeâ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)
3. Provide Context
Section titled â3. Provide Contextâ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
4. Review the Output
Section titled â4. Review the OutputâTEA generates test design document(s) based on mode.
Interrupting and Resuming a Run
Section titled âInterrupting and Resuming a RunâEach run saves its progress to its own checkpoint under {test_artifacts}:
| Run | Checkpoint |
|---|---|
| System-level | test-design-progress-system.md |
| Epic-level | test-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.
What You Get
Section titled âWhat You GetâSystem-Level Output (TWO Documents):
TEA produces two focused documents for system-level mode:
-
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
-
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
Test Design for Different Tracks
Section titled âTest Design for Different Tracksâ| Track | Phase 3 Focus | Phase 4 Focus |
|---|---|---|
| Greenfield | System-level testability + NFR planning | Per-epic risk assessment and test plan |
| Brownfield | System-level + existing test baseline | Regression hotspots, integration/NFR risks |
| Enterprise | Compliance-aware testability + NFR evidence plan | Security/performance/compliance focus |
Examples
Section titled âExamplesâSystem-Level (Two Documents):
cluster-search/cluster-search-test-design-architecture.md- Architecture doc with Quick Guidecluster-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
atddandautomate - Use
nfr-assesslater: 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
Next Steps
Section titled âNext StepsâAfter test design:
- Setup Test Framework: If not already configured
- Implementation Readiness: System-level feeds into gate check
- Story Implementation: Epic-level guides testing during dev
- NFR Evidence Audit: Run
nfr-assessafter implementation evidence exists