Task::Jenkins may be of some help. It has instructions about how to publish the Devel::Cover HTML reports through Jenkins, as well as info about adapting other Perl tools to Jenkins.
Jira has some instructions about integrating Devel::Cover into Jenkins.
To get code coverage for any Perl process (test, application, server, whatever) you set the PERL5OPT
environment variable to -MDevel::Cover
which is like putting use Devel::Cover
in the program. If your command to execute tests is perl something_test
then you'd run PERL5OPT=-MDevel::Cover perl something_test
.
If you're using prove
, use HARNESS_PERL_SWITCHES=-MDevel::Cover prove <normal prove arguments>
. This tells prove
to load Devel::Cover
when running the tests, but avoids gathering coverage for prove itself.