Re: Test::Builder2: running coverage fails to display key modules

James E Keenan <[email protected]>
Newsgroups gmane.comp.lang.perl.quality-assurance
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.