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
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
module prerequisites (Score:2)
PREREQ_PMdespite the ubiquity ofTest::More- there is a large difference between the test environment and the code itself, and making it impossible to build and install a module when test environment dependencies are missing just seems wrong.but another solution to using a
BEGINblock in each test file is to override thetesttarget in theMakefileby creating your ownMY::testsubroutine inMakefile.PL. something similar to this [cpan.org] (but forTest::More, of course). while it doesn't protect against people running the test files by themselves, it give an appropriate response for people just followingperl Makefile.PL && make && make test...Reply to This