I'm into testing, got some nice .t files, and prove tells me things I'd rather not hear. So, my next step on the straight and narrow path of testing, is to gauge my testing coverage.
IN the doc, the synopsis suggests "perl -MDevel::Cover yourprog args cover" But what can you use in 'yourprog'? .t and .pl files run, do the tests and have some extra messages implying that cover was running, but there are no stats printed. prove also runs my tests, and produces stats, but only for the installed modules. Clearly I'm missing something. As a self taught perler on a windows system, who knows what craziness I'm doing. Any guidance appreciated (mild cheerful abuse expected) Mike System info: Windows 2000 Server ActivePerl 5.6.? ( know it's not recommended ) if it really doesn't work, well part of the goal is to check coverage before I go through the upgrade) 30 *.t files 2,000+ tests prove runs nicely And thanks to advice here in these archives I was able to get a .ppm for Devel::Cover. -- Output from testing -- C:\blah>perl -MDevel::Cover commafy.t 1..8 ok 1 - use archive_purge; Devel::Cover 0.59: Collecting coverage data for branch, condition, pod, statement, subroutine and time. Selecting packages matching: Ignoring packages matching: /Devel/Cover[./] Ignoring packages in: . C:/Perl56/lib (not actually where my perl code lives, so @INC is off?) C:/Perl56/site/lib # COMMAFY Testing... [snip ... messages showing my tests running] Devel::Cover: Can't find file "blib\lib\Storable.pm": ignored. (storable is installed, but not in blib ... in fact, there is no blib ... ??? C:\blah>perl -MDevel::Cover commafy.t --- output from prove --- Devel::Cover 0.59: Collecting coverage data for branch, condition, statement, subroutine and time. Pod coverage is unvailable. Please install Pod::Coverage from CPAN. Selecting packages matching: Ignoring packages matching: /Devel/Cover[./] Ignoring packages in: . C:/Perl56/lib C:/Perl56/site/lib .\Archive_Purge.....ok [snip list .t files running, some of which fail] .\trailerlog_report.t 23 23 100.00% 1-23 1-23 Devel::Cover: Writing coverage database to C:/blah/cover_db/runs/1170356783.2480.43668 ----------------------------------- ------ ------ ------ ------ ------ ------ File stmt bran cond sub time total ----------------------------------- ------ ------ ------ ------ ------ ------ /perl/bin/prove 55.3 46.2 25.0 11.1 100.0 47.9 C:/Perl/lib/AutoLoader.pm 52.4 31.6 n/a 66.7 100.0 45.2 C:/Perl/lib/B.pm 7.1 18.8 23.8 1.8 100.0 6.7 [snip list of installed modules] Total 9.7 7.7 5.1 4.0 100.0 8.1 ----------------------------------- ------ ------ ------ ------ ------ ------