Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

djberg96 (2603)

djberg96
  (email not shown publicly)

Journal of djberg96 (2603)

Wednesday August 27, 2003
03:46 PM

Broken Tests

[ #14352 ]
Lowrey's Law states, "If it jams, force it. If it breaks, it needed replacing anyway".

There are times when I find myself adopting this philosophy in unit testing. Occasionally a test will fail for no good reason that I can see (like today, when a test caused a segfault), but works fine in a vanilla sample script.

At that point I do one of two things - either A) remove the test and tell myself, "bah, didn't need that test anyway", or B) alter it and tell myself, "yeah, that's it - that's the way it's *supposed* to work".

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.