Devel-Cover
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
Digest::MD5 is required to check whether covered files have changed. You can
download Digest::MD5 from CPAN.
EOM
check "Test::More", <<EOM;
Test::More is required to run the Devel::Cover tests. You can download
Test::More from CPAN.
EOM
check "Template", <<EOM, "2.00";
Template 2.00 is required to run the some HTML backends to cover and for
cpancover. Unless you have specific requirements this should not be a problem,
but you will not be able to use these reports until you install the Template
Toolkit, available from CPAN. In the meantime you may continue to use the rest
of Devel::Cover.
EOM
my $M = <<EOM;
One of PPI::HTML 1.07 or Perl::Tidy 20060719 is required to add syntax
highlighting to some HTML backends to cover and for cpancover. Unless you have
specific requirements this should not be a problem, but you will not be able to
use syntax highlighting in these reports until you install PPI::HTML or
Perl::Tidy, available from the CPAN. However, the rest of Devel::Cover will be
available as usual.
EOM
check "PPI::HTML", $M, "1.07";
check "Perl::Tidy", $M, "20060719";
print "checking for Pod::Coverage version 0.06 .... ";
my $E = <<EOM;
Pod::Coverage 0.06 is required to do pod coverage. This will tell you how well
you have documented your modules. Pod coverage will be unavailable until you
install this module, available from CPAN. In the meantime, you may continue to
use the rest of Devel::Cover.
EOM
eval "use Pod::Coverage";
if (my $m = $INC{"Pod/Coverage.pm"}) {
## no critic (ProhibitNoWarnings)
my $v = eval { no warnings; $Pod::Coverage::VERSION };
print $v < 0.06 ? "$v\n\n\n$E\n\n" : "$v $m\n";
print "checking for Pod::Coverage::CountParents .... ";
$E = <<EOM;
Pod::Coverage::CountParents.pm is used for Pod coverage if it is available. We
will fall back to using Pod::Coverage.pm. If you want to use
Pod::Coverage::CountParents.pm, just install it from CPAN.
EOM
eval "use Pod::Coverage::CountParents";
if (my $m = $INC{"Pod/Coverage/CountParents.pm"}) {
my $w = eval { no warnings; $Pod::Coverage::CountParents::VERSION };
$w ||= " ";
print "$w $m\n";
} else {
print "not found\n\n\n$E\n\n";
}
} else {
print "not found\n\n$E\n";
}
check "Test::Differences", <<EOM;
Test::Differences is used to display output from failed tests. Hopefully there
won't be any failed tests, but if there are you will get output that may not be
a model of clarity. If you do get test failures and you fancy helping me by
debugging them, then you might like to consider installing Test::Differences.
You can download Test::Differences from CPAN.
EOM
check "Browser::Open", <<EOM;
Browser::Open is used to launch a web browser when the -launch flag is specified
with HTML report formats. You can download Browser::Open from CPAN.
EOM
check "HTML::Entities", <<EOM;
HTML::Entities is used to run the HTML reports. If you would like to use the
HTML report, please install HTML::Entities. Otherwise, other reports will be
available as usual. Because HTML reports are expected, HTML::Entities has been
added to the prerequisites.
EOM
print <<EOM if $] > $Latest_t;
Devel::Cover $Version has not been tested with perl $].
Testing will take place against expected output from perl $Latest_t.
You may well find failing tests.
EOM
print "\n" x 3;
$ExtUtils::MakeMaker::Verbose = 0;
my $Opts = {
NAME => "Devel::Cover",
VERSION => $Version,
AUTHOR => 'Paul Johnson <paul@pjcj.net>',
MIN_PERL_VERSION => "5.020",
ABSTRACT_FROM => "lib/Devel/Cover.pm",
DIR => [],
EXE_FILES => [ map "bin/$_", qw( cover gcov2perl cpancover ) ],
PERL_MALLOC_OK => 1,
PREREQ_PM => {
"Storable" => 0,
"Digest::MD5" => 0,
"HTML::Entities" => 3.69,
$ENV{DEVEL_COVER_NO_TESTS} ? () : ("Test::More" => 0),
},
TYPEMAPS => ["utils/typemap"],
clean =>
{ FILES => "t/e2e/* cover_db* t/e2e/*cover_db README *.gcov *.out" },
dist => { COMPRESS => "gzip --best --force" },
test => { TESTS => $ENV{DEVEL_COVER_NO_TESTS} ? "" : "t/*.t t/*/*.t" },
realclean => { FILES => "lib/Devel/Cover/Inc.pm cover_db t/e2e" },
};
# use Data::Dumper; print Dumper $Opts;
WriteMakefile(%$Opts);
print "\n";
sub MY::postamble {
my %tests;
@tests{@Tests} = map { (my $t = $_) =~ s/\W/_/g; "cover_db_$t" } @Tests;
my @reports = qw(
compilation html_basic html_minimal html
html_subtle sort text2 text
vim
( run in 0.431 second using v1.01-cache-2.11-cpan-6aa56a78535 )