Re: Devel::Cover in MakeMaker

[email protected] (Andy Armstrong) Fri, 15 Jun 2007 13:55:44 +0100
Newsgroups perl.qa,perl.qa.metrics
Message-ID <[email protected]>
On 14 Jun 2007, at 22:45, Stephen Vance wrote:
> I'm setting up an agile development environment for a client while  
> writing modules most likely targeted for CPAN. I'd like to generate  
> coverage on every invocation of 'make test'. What's the current  
> state of making this happen?

Does it have to be make test?

If you add this to Makefile.PL:

eval 'use ExtUtils::MakeMaker::Coverage';
warn "Optional ExtUtils::MakeMaker::Coverage not available\n" if $@;

you get make testcover.

-- 
Andy Armstrong, hexten.net