t/lib trick
t/lib trick
●
If you still don't want to have prerequisites on testing modules
▶
Copy Test/Builder.pm & Test/More.pm into t/lib/
▶
Slap a "use lib 't/lib'" on your tests
▶
distribute the whole thing
●
Who does this?
▶
CGI, CPANPLUS, MakeMaker, parrot, Test::Harness
●
Caveats
▶
You'll be adding to Test::More's takeover of search.cpan.org
▶
Adds 18K to your tarball.
▶
Can't use TODO or no_plan.