Test Driven Development
TDD cycle: write test, implement feature, refactor
Complexity: Moderate | Duration: 15-30m | Category: Developer Experience
Tags: tdd testing development quality
Workflow Diagram
Steps
Step 1: Test writing
Agent: testing
specialist - Write failing test for new feature
Step 2: Red phase
Agent: component
qa-validator - Verify test fails as expected
Step 3: Implementation
Agent: orchestrator
Implement minimal code to pass test
Step 4: Green phase
Agent: component
qa-validator - Verify test passes
Step 5: Refactoring
Agent: senior
architect - Improve code quality
Step 6: Regression check
Agent: component
qa-validator - Verify all tests still pass
Usage
To execute this workflow:
/workflow developer-experience/test-driven-development.workflow
Related Workflows
See other workflows in this category for related automation patterns.