<div class="gmail_quote">On 26 September 2012 10:19, Lance Wicks <span dir="ltr"><<a href="mailto:lw@judocoach.com" target="_blank">lw@judocoach.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
Anyone on the list use Developer::Cover? I'm looking for some help getting started with it and wondered if anyone had experience with it or knew of some good tutorials?<br></blockquote><div><br></div><div>Yes!  Are you looking for help running it, or interpreting the output?</div>
<div><br></div><div>The first place I'd start would be the pod on CPAN:</div><div><br></div><div><a href="http://search.cpan.org/~pjcj/Devel-Cover-0.96/lib/Devel/Cover.pm#SYNOPSIS">http://search.cpan.org/~pjcj/Devel-Cover-0.96/lib/Devel/Cover.pm#SYNOPSIS</a></div>
<div><br></div><div>That link gives you the most common use case, which is running Devel::Cover with an automated test suite.  But there are other possible uses, like plugging it into a web server to see coverage of manual testing.  It all boils down to getting the module loaded so that it can trace which lines/branches/subs are executed, using e.g. "export PERL5OPT=-MDevel::Cover".  Then you run "cover" to generate the report.</div>
<div><br></div><div>For more about what the numbers mean, try the tutorial:</div><div><br></div><div><a href="http://search.cpan.org/~pjcj/Devel-Cover-0.96/lib/Devel/Cover/Tutorial.pod">http://search.cpan.org/~pjcj/Devel-Cover-0.96/lib/Devel/Cover/Tutorial.pod</a></div>
<div><br></div></div><div>Hope that helps,</div><div><br></div>-- <br>Tim Retout <<a href="mailto:tim@retout.co.uk" target="_blank">tim@retout.co.uk</a>><br>