in reply to Do you use loops in your unit tests?

Of course! Take a look at the tests for Excel::Template or DBM::Deep. It's very common to see a t/common.pm or t/lib/common.pm in CPAN distros or work distros. Even if it's just a bunch of functions that provide useful encapsulation around File::Temp and similar things.

My criteria for good software:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?
  • Comment on Re: Do you use loops in your unit tests?