Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Devel-Cover CPAN distribution.

Report information
The Basics
Id: 34261
Status: resolved
Priority: 0/
Queue: Devel-Cover

Owner: Nobody in particular
Requestors: mschwern [...]

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)

Subject: Move gcov file merging stuff out of cover -test
Download (untitled) / with headers
text/plain 330b
Currently, -gcov only has any effect when used in conjunction with -test. It would be nice if the "run the tests with gcov" part was separated from the "merge the gcov output into the Devel::Cover output" so that "cover -gcov" would do something. This is helpful for when "cover -test" isn't applicable, like with Module::Build.
And here's the patch.
---------------------------------------------------------------------- r56019: schwern | 2008-03-22 19:56:00 -0700 Allow -gcov to be run without -test. ---------------------------------------------------------------------- --- local/Devel-Cover/cover (revision 56018) +++ local/Devel-Cover/cover (revision 56019) @@ -218,6 +218,9 @@ } print STDERR "cover: running $test\n"; system $test; + $Options->{report} ||= "html"; + } + if ($Options->{gcov}) { my $gc = sub @@ -252,8 +255,7 @@ system $c; } } - $Options->{report} ||= "html"; - } + print "Reading database from $dbname\n" unless $Options->{silent}; my $db = Devel::Cover::DB->new
Another patch that I applied a long time ago but never closed the ticket. Thanks again,

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to