[grand-rapids-pm-list] Does anybody use Devel::Cover?
grand-rapids-pm-list at pm.org
grand-rapids-pm-list at pm.org
Wed Feb 20 15:32:46 PST 2008
I've used them for a few modules I've developed (see
http://search.cpan.org/~brondsem/) The modules are relatively small and
I haven't used Devel::Cover in any quantitative way, just running
`./Build testcover` and then checking the html output to see if I have
full coverage in the methods I care about.
Regarding your example, I can't say for sure, but I think if you run a
suite of tests through it at once, it will combine all the branch
coverages together. So you would get your 90% coverage metric
grand-rapids-pm-list at pm.org wrote:
>
> http://search.cpan.org/dist/Devel-Cover/
>
> ---> Looks like you could use it to recursively loop through a bunch of
> .t files, spit out coverage metrics, then parse them.
>
> Of couse, I can see a lot of problems with this.
>
> Module X.t
> Module X::Y.t
>
> Module X has crappy coverage of itself, but X::Y.t uses a lot of X so we
> should be okay; we need a way to figure out that 50% coverage + 85%
> coverage = 90% coverage.
>
> hmm.
>
> Just thinking ...
>
> --
> Matthew Heusser,
> Blog: http://xndev.blogspot.com
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> grand-rapids-pm-list mailing list
> grand-rapids-pm-list at pm.org
> http://mail.pm.org/mailman/listinfo/grand-rapids-pm-list
--
Dave Brondsema : dave at brondsema.net
http://www.brondsema.net : personal
http://www.splike.com : programming
<><
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 890 bytes
Desc: OpenPGP digital signature
Url : http://mail.pm.org/pipermail/grand-rapids-pm-list/attachments/20080220/f20518c6/attachment.bin
More information about the grand-rapids-pm-list
mailing list