talexb has asked for the wisdom of the Perl Monks concerning the following question:

I'm using Devel::Cover on an old codebase, and cover runs fine, but it does not generate an HTML report as I was hoping. There's no warning, and the text result is almost 700 lines long. I was relying on being able to browser through the HTML report .. has anyone experienced this before?

My plan is to start trimming the number of modules that get included, but I'd be interested in hearing feedback.

Alex / talexb / Toronto

Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

Replies are listed 'Best First'.
Re: No HTML report generated by Devel::Cover
by talexb (Chancellor) on Apr 22, 2019 at 18:07 UTC

    The answer is that you need to run cover after running the command with perl -MDevel::Cover. The cover command creates the HTML page. Sigh.

    Alex / talexb / Toronto

    Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

      If this is a module, then you can put something like this in your Makefile.PL (see here):

      sub MY::postamble { return <<'MAKE_FRAG'; .PHONY: authorcover authorcover: test cpanm Devel::Cover cover -test -coverage default,-pod MAKE_FRAG }

      Then all you need to do is e.g. perl Makefile.PL && make authorcover.