good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Should a CPAN module list Test:: modules as dependencies?by Corion (Patriarch) |
on Jul 20, 2004 at 13:32 UTC ( [id://375907]=note: print w/replies, xml ) | Need Help?? |
Personally, I prefer to use Test::Mores skip feature to skip tests whenever a optional (in general) but prerequisite (for the test) module is unavailable:
The Test::More documentation lists a different idiom of placing the prerequisite test in the SKIP block instead of the top of the test script:
Updated: Fixed code in my example, added example from Test::More documentation
In Section
Meditations
|
|