Stories
Slash Boxes
Comments
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 ]

Ovid (2709)

Ovid
  (email not shown publicly)
http://publius-ovidius.livejournal.com/
AOL IM: ovidperl (Add Buddy, Send Message)

Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.

Journal of Ovid (2709)

Thursday March 29, 2007
02:04 PM

Bad Thought For the Day (CPAN.pm and CPANPLUS.pm)

[ #32836 ]

Wouldn't it be interesting to have an option for CPAN and CPANPLUS to automatically run Devel::Cover with the test suite and if the coverage falls below a certain percentage to give you the option of abandoning the install?

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • I've been wondering whether CPANTS could add coverage as one of its metrics. It's fraught with difficulty of course :)
  • If you follow the instructions here [cpan.org] you'll see that you just have to set the following %ENV var:

    HARNESS_PERL_SWITCHES=-MDevel::Cover

    And then, whenever make test is run, so is coverage... ;)

    • I know to set the environment variable, but I don't believe there's an option to abandon the install if the coverage is below a certain point. I'd really like that (particularly if the module's a dependency in a chain of modules and I want to look at things closer).