Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Mark Leighton Fisher (4252)

Mark Leighton Fisher
  (email not shown publicly)

I am a Systems Engineer at Regenstrief Institute []. I also own Fisher's Creek Consulting [].
Thursday February 03, 2005
03:21 PM

Devel::Cover and External Programs

[ #23004 ]

If you use external programs as part of your testing process, the only reliable way I have found to get their test results merged is to run each of them individually, like:

PERL5OPT=-MDevel::Cover; export PERL5OPT; for program in ./*.pl; do $program; done)

(where I use "" for the main test program, and the other *.pl are the external programs).

Have I missed something really simple, or is this the easiest way to get complete test coverage results? It takes a lot longer to run each program twice -- once by "", and once by itself. Comments are encouraged.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.