Retrospective

Specify Behaviors with Tests to create living specifications. We walked through an example of building some basic functionality test-first and saw how to use tests to specify behavior. When developers see the benefit of doing test-first development, they can become test infected and want to do all their development test-first.

In this chapter, we discovered…

When done correctly, test-driven development helps developers create testable code that’s more maintainable, but TDD can fail when done poorly. By seeing tests as executable specifications for code, you’ll know exactly what tests to write for any given behavior. We walked through an example of doing test-first development so you can grasp the basic concept even if you’re not a programmer.

Footnotes

[46]

Eclipse IDE for Java Developers, Version 4.2 (Juno) and JUnit 4.

[47]

http://pragprog.com/book/dblegacy.