laziness, impatience, and hubris | |
PerlMonks |
Re^2: Perl Testing and Quality Assuranceby adrianh (Chancellor) |
on Jun 02, 2003 at 12:40 UTC ( [id://262351]=note: print w/replies, xml ) | Need Help?? |
All excellent advice. Another approach to determining what your tests should do is to see what you can remove from the code. Just delete a line or subroutine. Do all your tests still pass? If so one of the following is true.
God I love unit tests :-) You can even automate this sort of thing if you are that way inclined (see this interview where Java's Jester is discussed for an example).
In Section
Meditations
|
|