Skip Menu |

This queue is for tickets about the Test-Pod-Coverage CPAN distribution.

Report information
The Basics
Id: 5785
Status: resolved
Priority: 0/
Queue: Test-Pod-Coverage

People
Owner: Nobody in particular
Requestors: jonasbn [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Date: Wed, 24 Mar 2004 14:57:57 +0100 (CET)
Subject: A Bug?
From: "Jonas B. Nielsen" <jonasbn [...] logicLAB.dk>
To: bug-Test-Pod-Coverage [...] rt.cpan.org
Hi Andy, First of all thank you for a marvellous module. Up to now it has worked fantastically for my Perl modules etc. but I am currently working on a project where I no longer rely on ExtUtils::MakeMakers way of doing things I therefor no longer use the blib directory. According to the documentation I should be able to parse it some parameters in a hash to control this, this does not seem to work, at least not the way I expected it to. This is what I am doing: all_pod_coverage_ok(dirs => 'lib'); And this is the error I get: /usr/bin/perl -Ilib t/03_pod-coverage.t Can't stat blib: No such file or directory at /Library/Perl/5.8.1/Test/Pod/Coverage.pm line 187 You said to run 0 tests! You've got to run something. # Looks like your test died before it could output anything. make: *** [test] Error 255 So I made the following change to Test::Pod::Coverage: my @modules = all_modules(@{$parms{dirs}}); And then it works? - the line used to look like the following: my @modules = all_modules(); Did I missunderstand the documentation or did I find a bug? hyperstation ~ % version.pl Test::Pod::Coverage Test::Pod::Coverage located in /Library/Perl/5.8.1 is version: 0.08 jonasbn -- Jonas B. Nielsen Founder of logicLAB jonasbn@logicLAB.dk || http://www.logicLAB.dk/ (+45 26920510)
Date: Wed, 24 Mar 2004 15:29:40 +0100 (CET)
Subject: Re: [cpan #5785] AutoReply: A Bug?
From: "Jonas B. Nielsen" <jonasbn [...] logicLAB.dk>
To: bug-Test-Pod-Coverage [...] rt.cpan.org
RT-Send-Cc:
Hi Andy (again), It seemed like it worked, but actually I made a mistake and the module did not compile meaning the tests where skipped. I get the tests to run with the following construction: In my .t file: my %dirs = ( 'dirs' => 'lib' ); all_pod_coverage_ok(\%dirs); In Test::Pod::Coverage: my @modules = all_modules($parms->{dirs}); Sorry for the wrong data earlier jonasbn -- Jonas B. Nielsen Founder of logicLAB jonasbn@logicLAB.dk || http://www.logicLAB.dk/ (+45 26920510)
From: Jonas B.Nielsen <jonasbn [...] logicLAB.dk>
Subject: Re: [cpan #5785] AutoReply: A Bug?
Date: Wed, 24 Mar 2004 20:52:37 +0100
To: bug-Test-Pod-Coverage [...] rt.cpan.org
RT-Send-Cc:
Hi Andy, My little hack seem to trigger something bad in File::Find So this works for me now: my @modules; if ($parms->{dirs}) { @modules = all_modules($parms->{dirs}); } else { @modules = all_modules(); } jonasbn
From: Jonas B.Nielsen <jonasbn [...] logicLAB.dk>
Subject: Re: [cpan #5785] AutoReply: A Bug?
Date: Thu, 25 Mar 2004 07:32:45 +0100
To: bug-Test-Pod-Coverage [...] rt.cpan.org
RT-Send-Cc:
Hi Andy, If you have the time, could you change the requestor to my PAUSE id: JONASBN Thanks, jonasbn
Not sure why you're passing hashes around. all_modules() just takes a list of directories to look for modules in.