Retrospective

Write the Test First, and then write only the code needed to make the test pass. This keeps the software you build focused and testable. Tests should support you in refactoring safely and test code should be kept as CLEAN as production code.

In this chapter, we discovered…

When done correctly, test-first development helps developers create testable code that’s more maintainable, but TDD can become more of a burden than an asset when done poorly.

Footnotes

[45]

Gamma, Erich. “Test Infected.” http://junit.sourceforge.net/doc/testinfected/testing.htm