Classic TDD
Classic TDD is the original approach to TDD created by Kent Beck. It is also known as the Detroit/Chicago school of TDD. This practice allows you to:
- Spend less time debugging code to prove that it works: Tests will show that your code works correctly and implements the expected behavior.
- Reduce the fear of changing code: Tests act as a safety net. Would you walk on a rope several hundred feet high? What if you had a safety net? TDD is your safety net.
- Use tests as living documentation: Well-crafted tests describe the behavior in your code, and above all, serve as up-to-date documentation.
- Use tests as a feedback loop for design decisions: If tests are difficult to write, your design can probably be improved.