in reply to No HTML report generated by Devel::Cover

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.

Replies are listed 'Best First'.
Re^2: No HTML report generated by Devel::Cover
by haukex (Archbishop) on Apr 22, 2019 at 18:27 UTC

    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.