Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Test::Pod::Coverage testing previously installed distro

by uG (Scribe)
on Oct 22, 2012 at 16:29 UTC ( #1000378=perlquestion: print w/replies, xml ) Need Help??
uG has asked for the wisdom of the Perl Monks concerning the following question:

I've been learning how to do basic testing. However i'm hung up on:

use Test::More; eval "use Test::Pod::Coverage 1.00"; plan skip_all => "Test::Pod::Coverage 1.00 required for testing POD co +verage" if $@; all_pod_coverage_ok();

However, it attempts to test my installed version of the module this test is for. So say I have Module/lib/ and Module/t/pod_coverage.t and I do prove t/pod_coverage.t, it doesn't test Module/lib/, it tests /home/user/perl/version/installed_modules/ which results in a failed test case (if the module wasn't already installed) or a failed test case (because the previous version of the module on cpan shouldn't pass pod_coverage.t like the updated module).

Why isn't all_pod_coverage_ok() checking the current directory's lib directory and instead checks the installed version?

Replies are listed 'Best First'.
Re: Test::Pod::Coverage testing previously installed distro
by tobyink (Abbot) on Oct 22, 2012 at 16:41 UTC

    You probably want prove -l, not plain prove.

    perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1000378]
Approved by tobyink
[Lady_Aleena]: Corion, I could give the password to the gods to hold onto just in case.
[Discipulus]: Justin Case god can always get your pwd LA ;=) they all see, they all ear, they all know ;=)
[hippo]: It may be too far down the tree for some folks to bother with, but IMHO, Re^32: global var is probably node of the day already. (++)

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2017-04-26 08:18 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (471 votes). Check out past polls.