Eric M. Burke and Brian M. Coyner have written a short article entitled Top 12 Reasons to Write Unit Tests. I especially like that they mention that it makes development faster and that it improves the design.
For me, design is improved because by the time the classes are released, they have had at least one user--the developer. I typically fiddle with the API by exercising it via unit tests until it feels right--trying to balance it from the perspective of programmer usability, good OO design, and good-enough criteria.
Unit tests make development faster, because, to use a military metaphor, once you have taken ground, you never give it up, you always move forward.
7:19:59 PM
|
|