What problem does it solve?
Test-driven development helps you prevent regressions and design better behavior by forcing you to define expected outcomes before writing the implementation.
Core Features & Use Cases
- Red-Green-Refactor loop: Drive implementation from one failing test to a minimal passing solution, then improve structure.
- Behavior-focused, integration-style tests: Verify behavior through public interfaces so tests survive refactors.
- Mocking guidelines: Mock only system boundaries (external APIs, databases, time/randomness, filesystem) to avoid brittle tests.
- Avoid horizontal slicing: Write tests and implementation vertically (tracer bullets) instead of batching tests first.
Quick Start
Ask the AI to guide you through writing one tracer-bullet test for a specific behavior, then implementing only enough code to make it pass, and finally refactoring while keeping tests green.