Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: No HTML report generated by Devel::Cover

by talexb (Chancellor)
on Apr 22, 2019 at 18:07 UTC ( [id://1232875]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1232875]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-19 05:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found