Alberto Savoia has written an excellent article on the benefits of unit testing. The article is entitled The Developer Testing Paradox. In it he delves into the interesting idea that there is a threshold at which a program undergoes a "bugterial infection" in which bugs begin to multiply and compound on each other. I would very much like to look into any non-linear trends in bug rates. This will require consistent data from a few projects that undergo regular testing and bug reporting.
He also postulates seven laws of unit testing:
- The Law of Management Commitment
- The Law of Team Buy-In
- The Law Of Metrics
- The Law Of Targets
- The Law Of Training And Coaching
- The Law of Automation
- The Law Of Failure
The Law of Failure will be near and dear to any tester's heart: Good Tests Fail.

Comments