2.3. Summary

Test-Driven Development provides us with better code coverage, more ability to refactor efficiently, quicker feedback about the quality of our code, and a mechanism for formalizing regression testing.

More important, TDD provides every developer with the opportunity to write better-designed interfaces that more closely meet the requirements defined for them, and to more clearly express his or her intent for how the interface should be used and how errors should be handled.

It is this finer expression of contract and of intent that in the long run provides at least as much, if not more, benefit from TDD than simply quality assurance.

Get Code Leader: Using People, Tools, and Processes to Build Successful Software now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.