On 8/4/12 11:34 AM, James E Keenan wrote:
On 8/4/12 11:16 AM, James E Keenan wrote:
On 8/4/12 10:54 AM, Paul Johnson wrote:
How did you generate
your coverage report?


Main part of my shell script:

cd $SOURCEDIR && \
cover -delete $COVERAGEDIR && \
PERL5OPT=-MDevel::Cover=-db,$COVERAGEDIR/ \
perl Makefile.PL && make && make test && \
cover $COVERAGEDIR \
-coverage statement \
-coverage branch \
-coverage condition \
-coverage subroutine \
-ignore_re '^t\/' \
-ignore_re '^\/usr\/local\/bin' \
-ignore_re '^\/tmp' \
chmod 0755 $COVERAGEDIR/

Data point: When I call this command, the first thing I get is a couple
of dozen warnings like this:

Devel::Cover: Warning: can't open ro-accessor for object_id
(.../test-more/blib/lib/TB2/Mouse.pm) for MD5 digest: No such file or
directory

... even though blib/lib/TB2/Mouse.pm clearly exists.


And a further data point:

When I call a command as simple as:

  cover $COVERAGEDIR -summary

... I fail to get reporting on the three packages mentioned earlier, though all tests pass. This suggests that for some reason data is not being recorded in the Devel::Cover DB.

Reply via email to