Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Devel::Cover for Dummies

by Hue-Bond (Priest)
on May 05, 2010 at 07:44 UTC ( #838457=note: print w/ replies, xml ) Need Help??


in reply to Devel::Cover for Dummies

If you use Module::Build, there's already a ./Build target that does the coverage for you. This is an example of a brand new module bootstrapped using Module::Starter's module-starter utility:

$ module-starter --module Foo --mb --author "some 1" --email 'some1@ex +ample.com' Created starter directories and files $ cd Foo $ perl Build.PL Checking whether your kit is complete... Looks good Checking prerequisites... Looks good Creating new 'Build' script for 'Foo' version '0.01' $ ./Build help |grep cover docs testcover html testpodcoverage
$ ./Build testcover t/00-load.........ok 1/1# Testing Foo 0.01, Perl 5.010000, /usr/bin/pe +rl t/00-load.........ok + t/boilerplate.....ok + t/pod-coverage....ok + t/pod.............ok + All tests successful. Files=4, Tests=6, 8 wallclock secs ( 6.78 cusr + 0.45 csys = 7.23 C +PU) cover Reading database from /home/hue/tmp/Foo/cover_db ---------------------------- ------ ------ ------ ------ ------ ------ + ------ File stmt bran cond sub pod time + total ---------------------------- ------ ------ ------ ------ ------ ------ + ------ blib/lib/Foo.pm 75.0 n/a n/a 50.0 100.0 100.0 + 71.4 Total 75.0 n/a n/a 50.0 100.0 100.0 + 71.4 ---------------------------- ------ ------ ------ ------ ------ ------ + ------ Writing HTML output to /home/hue/tmp/Foo/cover_db/coverage.html ... done.
$ ./Build testpodcoverage 1..1 ok 1 - Pod coverage on Foo

--
 David Serrano
 (Please treat my english text just like Perl code, i.e. feel free to notify me of any syntax, grammar, style and/or spelling errors. Thank you!).


Comment on Re: Devel::Cover for Dummies
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (10)
As of 2015-07-29 07:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (261 votes), past polls