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!).


In reply to Re: Devel::Cover for Dummies by Hue-Bond
in thread Devel::Cover for Dummies by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.