Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

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:


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.

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://980293]
Approved by Corion
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2018-06-24 19:11 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (126 votes). Check out past polls.