Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Limited Coverage

by Herkum (Parson)
on Jan 21, 2010 at 19:10 UTC ( #818796=perlquestion: print w/replies, xml ) Need Help??
Herkum has asked for the wisdom of the Perl Monks concerning the following question:

I have a custom package that I am developing and I am running Build testcover to generate a Coverage report. I want to limit it to only the Modules that are a part of my package that I am bundling, but the coverage report covers all the modules that I am using as well.

What do I have to do in order to limit coverage to Modules in my package?

Replies are listed 'Best First'.
Re: Limited Coverage
by molecules (Monk) on Jan 21, 2010 at 20:02 UTC

      Tried it, and the options I tried did not so I think I am missing something fundamental about how the options are supposed to work.

      Something that irks me about the whole situation, if you are integrating this into a package build, I would assume the default would be configured to check you package bundle, not everything.

        Perhaps try invoking Devel::Cover a different way. I use the following commands and I've never seen it test anything outside of the directory in which I was working.
        cover -delete HARNESS_PERL_SWITCHES=-MDevel::Cover perl ./Build test cover
        Actually, what I really do is use a bash script:
        #!/bin/bash if [ -f Build.PL ]; then makecommand="perl ./Build" elif [ -f Makefile.PL ]; then makecommand=make else echo Cannot generate coverage information from this directory! exit 1 fi cover -delete; HARNESS_PERL_SWITCHES=-MDevel::Cover $makecommand test; + cover
        I wish I could help more, but I'm currently at the limit of my experience on this issue.

        Good luck.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://818796]
Approved by AnomalousMonk
help
Chatterbox?
[stevieb]: perldigious: video near our hq in Montreal. Here in Calgary, it's -28c... we've only got 3" of snow so far, but there are several feet in the mountains already
[perldigious]: Snowshoeing time stevieb? I need to buy a pair so I can walk my German Shepherd properly through the country.
[stevieb]: yeah, I snowshoe a fair amount in the mountains. I also use spikes similar to these very often as well
[perldigious]: Discipulus: alternate link
[stevieb]: LOL you can easily replace "Helsinki" with "Alberta"
[perldigious]: I used to live at the top of a very steep hill stevieb, I can relate to the video. Literally used to have to build up momentum and try to force my vehicle to make it up the hill to park in my driveway properly... didn't always make it.

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (10)
As of 2016-12-06 16:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (112 votes). Check out past polls.