http://www.perlmonks.org?node_id=980293

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.

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