High Test CoverageThe code follows the tests.It makes sense that test coverage would be high.
High Test CoverageI no longer have to rely on the functionaltesters to tell me my code works. I knowit works.For my F5 tells me so.
No fear of breaking anythingThis one’s my favorite, because itmeans I can refactor mercilessly.Every time I make a code change, I runthe tests. They tell me immediatelyand loudly if I broke anything.
No fear of breaking anything Like Patrick Bateman in American Psycho, I laugh maniacally while I carve up bodies of code.
Other Reasons that TDD Rules Unit Tests are Documentation
Other Reasons that TDD Rules Closes the Feedback Loop “The act of writing a unit test is more an act of design than of verification. It is also more an act of documentation than of verification. The act of writing a unit test closes a remarkable number of feedback loops, the least of which is the one pertaining to verification of function.” Robert “Uncle Bob” Martin Agile Software Development ( You know code works after 30 seconds, not 10 minutes. )
It can be quite a struggle at first.Downright painful.