Perl tool for determining code coverage metrics


Devel::Cover is a Perl module that helps collect and display code coverage information. Code coverage information is collected using a pluggable runops function which counts how many times each op is executed. This data is then mapped back to reality using the B compiler modules. There is also a another statement profiler which needs a better backend to be really useful.

Statement, branch, condition, subroutine, pod and time coverage information is reported. Statement coverage data should be reasonable, although there may be some statements which are not reported. Branch and condition coverage data should be mostly accurate too, although not always what one might initially expect. Subroutine coverage should be as accurate as statement coverage. Pod coverage comes from Pod::Coverage. If Pod::Coverage::CountParents is available it will be used instead. Coverage data for path coverage are not yet collected.

The cover program can be used to generate coverage reports. Another included program, gcov2perl, can convert gcov files to Devel::Cover databases.

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install libdevel-cover-perl