Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

No HTML report generated by Devel::Cover

by talexb (Canon)
on Apr 22, 2019 at 15:43 UTC ( #1232871=perlquestion: print w/replies, xml ) Need Help??

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 (Canon) 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1232871]
Approved by haukex
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2019-07-24 02:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If you were the first to set foot on the Moon, what would be your epigram?






    Results (32 votes). Check out past polls.

    Notices?