in reply to Limited Coverage

./Build testcover uses Devel::Cover, so check out the options, including specifics for including/excluding files based on regexes.

Hope this helps.

Replies are listed 'Best First'.
Re^2: Limited Coverage
by Herkum (Parson) on Jan 21, 2010 at 20:37 UTC

    Tried it, and the options I tried did not so I think I am missing something fundamental about how the options are supposed to work.

    Something that irks me about the whole situation, if you are integrating this into a package build, I would assume the default would be configured to check you package bundle, not everything.

      Perhaps try invoking Devel::Cover a different way. I use the following commands and I've never seen it test anything outside of the directory in which I was working.
      cover -delete HARNESS_PERL_SWITCHES=-MDevel::Cover perl ./Build test cover
      Actually, what I really do is use a bash script:
      #!/bin/bash if [ -f Build.PL ]; then makecommand="perl ./Build" elif [ -f Makefile.PL ]; then makecommand=make else echo Cannot generate coverage information from this directory! exit 1 fi cover -delete; HARNESS_PERL_SWITCHES=-MDevel::Cover $makecommand test; + cover
      I wish I could help more, but I'm currently at the limit of my experience on this issue.

      Good luck.

        I am assuming that this was a *NIX system, because it did not work on mine, which was Windows... :(