name: ‘step-04-session-04’ description: ‘Session 4: Test Design - Risk assessment, test design workflow (60 min)’
progressFile: ‘{test_artifacts}/teaching-progress/{user_name}-tea-progress.yaml’ sessionNotesTemplate: ‘../templates/session-notes-template.md’ sessionNotesFile: ‘{test_artifacts}/tea-academy/{user_name}/session-04-notes.md’ nextStepFile: ‘{skill-root}/steps-c/step-03-session-menu.md’ advancedElicitationTask: ‘{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml’
To teach risk assessment and coverage planning using the TEA Test Design workflow in a 60-minute session.
{communication_language}“🧪 Session 4: Test Design (60 minutes)
Objective: Learn risk assessment and coverage planning
What you’ll learn:
Let’s plan some tests!”
Set session-04-test-design status: 'in-progress', started_date.
”### 📐 Test Design Workflow
Purpose: Plan tests BEFORE writing them (design before code).
Workflow Steps:
When to Use:
{Role-adapted example}
Documentation: https://bmad-code-org.github.io/bmad-method-test-architecture-enterprise/how-to/workflows/run-test-design/“
”### ⚖️ Risk & Testability Assessment
Risk Scoring:
Example: Login Feature
Example: Tooltip Text
Testability:
{Role-adapted example}
Knowledge Fragments: probability-impact.md, test-priorities-matrix.md”
”### 📋 Coverage Planning
Test Levels Framework:
Unit Tests: Isolated functions/classes
Integration Tests: Multiple components together
E2E Tests: Full user workflows
Coverage Strategy:
{Role-adapted example}
Knowledge Fragment: test-levels-framework.md
Documentation: https://bmad-code-org.github.io/bmad-method-test-architecture-enterprise/explanation/test-quality-standards/“
”### 📊 Test Priorities Matrix
P0-P3 Coverage Targets:
| Priority | Unit | Integration | E2E | Manual |
|---|---|---|---|---|
| P0 | ✅ | ✅ | ✅ | ✅ |
| P1 | ✅ | ✅ | ✅ | - |
| P2 | - | ✅ | - | ✅ |
| P3 | - | - | - | ✅ |
Goal: 100% P0, 80% P1, 50% P2, 20% P3
{Role-adapted example}
Knowledge Fragment: test-priorities-matrix.md”
Q1: “What does the Test Design workflow help you do? A) Write tests faster B) Plan tests BEFORE writing them C) Run tests in parallel D) Debug test failures”
Correct: B
Q2: “How do you calculate risk? A) Probability + Impact B) Probability × Impact C) Probability - Impact D) Probability / Impact”
Correct: B
Q3: “For P0 features, which test levels should you use? A) Only E2E tests B) Only unit tests C) Unit + Integration + E2E (comprehensive) D) Manual testing only”
Correct: C
Calculate score, handle <70% retry.
Create {sessionNotesFile} with Session 4 content, docs, fragments, quiz.
Update session-04-test-design: completed, score, notes. Increment sessions_completed, update percentage. Append ‘step-04-session-04’ to stepsCompleted. Set next_recommended: ‘session-05-atdd-automate’.
“🎉 Session 4 Complete! Score: {score}/100 You can now plan tests using risk assessment! Progress: {completion_percentage}%”
[A] Advanced Elicitation [P] Party Mode [C] Continue to Session Menu
Return to {nextStepFile}.
✅ Test Design workflow taught, quiz passed, notes generated, progress updated, returned to hub.
Master Rule: Teach planning, quiz, update, return.