Reduce Risks with Small Tests

Your project isn’t easy. You’ve got serious technical or schedule risk. The wider variety of testing you use on your project, the more you can reduce risks. If you need to choose just one type of test to begin with, make it unit tests. The best way to implement unit tests is with test-driven development (TDD), but if you can’t get your team to write their tests before they write the production code, at least get them to write the tests soon after writing the code.

The reason to choose TDD over any other kind of testing is simple: TDD is actually more about design than it is about testing.

TDD has been around since the 1970s (The Mythical Man Month: Essays on Software Engineering [Bro95]). It’s more accepted ...

Get Manage It! 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.