For Devel :: Cover to cover all files in specific paths

I have been instructed to clear some old code that is poorly written but has an amazingly large number of tests. Some of these tests run code in these files:

fcgi/*.fcgi 

I would very much like to include them in my coverage reports. In fact, I wish I could include everything (regardless of extension) in lib/ , fcgi/ and utils/ and nothing else 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 

FAIL!

I also tried to create simple Build.PL or Makefile.PL scripts and keep getting "No tests" when I run things like "cover -test", or './Build testcover'.

This is Devel :: Cover 0.88 and perl version 5.12.2

+4
source share
1 answer

Ok, I took your example, played around with it a bit, and it seems to work fine for me with minimal Makefile.PL and cover -test. Please clone this: git: //gist.github.com/3061026.git

The README file contains what is happening on my system.

+2
source

All Articles