Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Perl-Sensitive Sunglasses
 
PerlMonks  

Devel::Cover: include all files from specified paths

by Ovid (Cardinal)
on Jul 06, 2012 at 15:09 UTC ( #980293=perlquestion: print w/ replies, xml ) Need Help??
Ovid has asked for the wisdom of the Perl Monks concerning the following question:

I have been tasked with cleaning up some legacy code which is poorly written, but has an astonishingly large number of tests. Some of these tests run code in files like this:

fcgi/*.fcgi

I would very much like to include those in my coverage reports. In fact, I'd love to ensure that I can include everything (regardless of extension) in lib/, fcgi/, and utils/ and nothing in any other directories.

This is one of my many attempts:

HARNESS_PERL_SWITCHES=-MDevel::Cover=+inc,fcgi,+inc,lib,+inc,util prove -rl t

That almost works, but that doesn't report on the fcgi/*fcgi files.

What magic do I need to include them?

This is Devel::Cover 0.88 and Perl version 5.12.2.

Comment on Devel::Cover: include all files from specified paths
Select or Download Code
Re: Devel::Cover: include all files from specified paths
by Anonymous Monk on Jul 06, 2012 at 15:52 UTC
    Try +select,fcgi

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://980293]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2014-04-19 15:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (483 votes), past polls