Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Devel::Cover Looks the Other Way

by pbeckingham (Parson)
on Jul 28, 2004 at 16:59 UTC ( [id://378115]=perlquestion: print w/replies, xml ) Need Help??

pbeckingham has asked for the wisdom of the Perl Monks concerning the following question:

I am using Devel::Cover to determine the extent of coverage my test suite is achieving. Things are not looking very good at the moment, but that's a problem.

I noticed that of the 15 modules I am using (local modules in my project) there are 4 that are not included in the results table, but are definitely used.

Does anyone have experience of Devel::Cover not including all the modules it should?

Replies are listed 'Best First'.
Re: Devel::Cover Looks the Other Way
by stvn (Monsignor) on Jul 28, 2004 at 20:01 UTC

    Are these modules per-chance pulled in with either a dynamic eval (eval "use MyModule") or some other such thing? I am not sure, but that might have an effect on things. You could also try explicitly use-ing those modules in your test suite itself (if you are not already that is), which might make Devel::Cover take notice of them and help you determine if that is the issue.

    You should try isolating the problem and sending the author a note with your example code. I know he also hangs out on the perl-qa mailing list.

    -stvn
Re: Devel::Cover Looks the Other Way
by jryan (Vicar) on Jul 28, 2004 at 18:24 UTC
    What version of perl are you using? From the pod, Devel::Cover seems to be a little flakey on older versions of perl.

      I'm using 5.8.0 on Solaris. I saw the pod, but 5.8.0 isn't exactly old. Upgrading from 5.8.0 is not an option.

      Devel::Cover is version 0.4, from March 24, 2004.

        Two things:

        1. There is a new version of Devel::Cover out on the CPAN, version 0.47, so maybe upgrading your module will fix your problems.
        2. Also, from the pod:
          Perl 5.8.0 and 5.8.1 will give slightly different results to more recent versions due to changes in the op tree.
          So, that might be part of your problem. Perl 5.8.0 actually is kind of old, it was released over 2 years ago. Perl 5.8.5 is the latest version.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://378115]
Approved by Enlil
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2024-04-25 19:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found