Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

sky (1411)

sky
  (email not shown publicly)

sky on IRC

Journal of sky (1411)

Friday July 06, 2001
11:52 AM

Devel::Coverage

[ #383 ]
A long time I have envied Rocco for his coverage analysis of POE, but I haven't had time to play with it myself. So today I stumbled across this excellent article about code coverage analysis.

I installed it, run it simply on my test cases and got a coverage report, wow, that was simple. Actually it wasn't that simple. The test cases are in different files, so just had a file called runthetest.pl that did require $ARGV[0];. But it was still simple. My simple test cases for this project showed a 90% coverage, I was in shock, I had thought 50% or so, (351 out of 3412 lines untested).
Now I just need to find away to do coverage analysis of the C parts for threads .pm. Otherwise I recomend this to everyone who want to make sure thier code runs as it should.

Artur