Advanced use of Devel::Cover

Braga, Portugal -- 1st September 2005

Paul Johnson


www.pjcj.net

Devel::Cover

Devel::Cover

Integration into the build process

Integration into the build process

ExtUtils::MakeMaker

makemaker.jpg

$ cover -test

ExtUtils::MakeMaker

Add to Makefile.PL:


sub MY::postamble
{
    qq[
testcover :
\t cover -test
    ]
}

ExtUtils::MakeMaker

Add to Makefile.PL:


sub MY::postamble
{
    qq[
testcover :
\t cover -delete && \\
   HARNESS_PERL_SWITCHES=-MDevel::Cover \$(MAKE) test && \\
   cover -report text
    ]
}

ExtUtils::MakeMaker

Add to Makefile.PL:


use ExtUtils::MakeMaker::Coverage;

Written by Steve Peters

Module::Build


$ ./Build testcover

$ DEVEL_COVER_OPTIONS=-ignore,Build ./Build testcover

File Selection

File Selection

File Selection

File Selection

File Selection

File Selection

Covering mod_perl

Covering mod_perl

Covering XS code

Covering XS code

Covering XS code

Covering XS code

Increasing Coverage

Increasing Coverage

Merging Databases

Merging Databases

Error Conditions

Error Conditions

Error Conditions

Error Conditions

Uncoverable code

Uncoverable code

Uncoverable code

Uncoverable code

Annotations

Annotations

Reports

Reports

Problems Opportunities

<strike>Problems</strike> Opportunities

Future

Future