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

Re: No HTML report generated by Devel::Cover

by talexb (Canon)
on Apr 22, 2019 at 18:07 UTC ( #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 (Chancellor) 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
Node Status?
node history
Node Type: note [id://1232875]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2019-07-16 18:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?