Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Devel::Cover for Dummies

by Hue-Bond (Priest)
on May 05, 2010 at 07:44 UTC ( [id://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!).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-24 06:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found