Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Devel::Cover: include all files from specified pathsby Ovid (Cardinal) |
on Jul 06, 2012 at 15:09 UTC ( [id://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/*.fcgiI 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 tThat 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. Cheers,
Back to
Seekers of Perl Wisdom
|
|