7. Principles
• Plan ahead
• Small steps
• Smallest amount of code to
pass the test
• JUST to pass the test
• Focus on the current test
• Ask questions
Discipline, discipline, discipline!
8. TDD in Legacy Code
• Start a bug fix with a test
• Start a feature with a test
Not just for greenfield projects!