laziness, impatience, and hubris | |
PerlMonks |
Re^3: Unit Testing in Perlby adamk (Chaplain) |
on Jun 26, 2005 at 13:31 UTC ( [id://470024]=note: print w/replies, xml ) | Need Help?? |
I think it's fair to say that by far the majority of people use either Test::More, something else that produces TAP-compatible output, or one of the many modules you can layer on top of Test::More itself. TIMTOWTDI does have benefits that make up for the simplicity a single common module might provide, and that includes getting access to newer testing methodologies that are (arguably) better than xUnit in various cases. For example, take a look at Test::Inline. This lets you write your tests inline in your modules, right next to the code that it tests, and then run these tests in the appropriate order. Improvements like this may not have been possible were we limited to one specific package. To summarise, TAP (Test Anything Protocol) is the standard. Test::More is the most common module used to produce TAP, but you are welcome and encouraged to use any of the dozens of other modules to produce TAP, as the situation dictates.
In Section
Seekers of Perl Wisdom
|
|