I'm thinking about writing Test::Load (similar to Test::Class::Load).
It would be a wrapper around http://use.perl.org/~Ovid/journal/34596.
Basically, you'd do something like this in t/00-load.t (or whatever you
call it):
use Test::Load
lib => 'lib/',
same_versions => 0,
todo => { packages => [EMAIL PROTECTED], reason => $todo_reason },
skip => { packages => [EMAIL PROTECTED], reason => $skip_reason };
And it would attempt to find all .pm files and "use_ok $package or
BAIL_OUT", running handling TODO and SKIP as appropriate. 'lib' would
default to 'lib' and 'same_versions' would default to false, so for
most distributions, all you would have to do is:
use Test::Load;
No more listing a bunch of packages there or forgetting to add a new
.pm file you just wrote. (and 'lib' would optionally take an array ref
of libs).
Am I missing any functionality which should be there?
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Perl and CGI - http://users.easystreet.com/ovid/cgi_course/
Personal blog - http://publius-ovidius.livejournal.com/
Tech blog - http://use.perl.org/~Ovid/journal/