Unit Testing Justification

Testing and fixing errors can be done at any phase of the development cycle. However, Boehm (2) has shown, and others have reiterated (7,8), that the cost of finding and fixing errors increases dramatically as development progresses. Defects are radically cheaper to fix when programmers find their own errors.

Developers are obligated to perform unit tests on their code. They cannot afford to pass buggy code to today's sophisticated software consumers. The units they create must pass unit tests with 100% accuracy before they can be placed in the build process. If any problems are detected by unit tests, developers must give them high priority and resolve them immediately, as the following axiom from JavaWorld states: ...

Get Just Enough Software Test Automation 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.