GSD TDD Reference
Test-Driven Development patterns and practices.
When to Use
- •Writing new functionality
- •Refactoring existing code
- •Ensuring test coverage
TDD Cycle
- •Red - Write failing test
- •Green - Make test pass
- •Refactor - Improve code
Best Practices
- •Write smallest test first
- •Test one thing at a time
- •Use descriptive test names
- •Maintain fast test execution
- •Achieve high coverage
Success Criteria
Tests written before implementation, all passing.