Re: Devel::Cover in MakeMaker

[email protected] (Stephen Vance) Fri, 15 Jun 2007 08:57:14 -0400
Newsgroups perl.qa.metrics
Message-ID <[email protected]>
Yes. I'd like it to just run automatically when I do 'make test' and be 
fully integrated into the generated Makefile. I also want it to do the 
'cover -delete' before and 'cover' after as part of the test target or 
at least as a testcover target. I'm doing the shell wrapper in the meantime.

Steve

James E Keenan wrote:
> 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?
>>
> Do you need anything more than a shell function like this?
>
> harness ()
> {
>     HARNESS_PERL_SWITCHES=-MDevel::Cover make test
> }
>
>
> jimk
>