Jeff,

On Nov 5, 2004, at 4:33 PM, Jeff Bisbee wrote:
I was just wondering if there was an easier way where make test whould
like in lib and not blib.

Well if you don't do the 'make test' step, you can just call the test file individually and add 'lib/' to the @INC from the command line. Like this:


perl -MDevel::Cover -I lib/ t/my_test.t

I agree with you about the blib/ being annoying, which is why I don't 'make test'. Here is the relevant bits of my run_coverage script which you might find useful (i forgot I had re-written it in perl).

`rm -rf cover_db/` if (-e "cover_db");
(-e 't' && -d 't') || die "Count not find test (t/, tests/)\n";
system("perl -MDevel::Cover=-ignore,'t/.*?\.t' -I lib/ $_") for (<t/*.t>);
system("cover");



Steve




Reply via email to