On Sat, Oct 04, 2003 at 07:23:09AM +1000, Andrew Savige wrote:

> Ovid wrote:
> > I was running some test code with Devel::Cover and I've had no problem using
> > it or generating pretty reports that make coworkers "ooh" and "ahh".
> > Unfortunately, I started running my test suite on a different set of
> > tests and started getting some strange errors...
> 
> I have no experience with Devel::Cover yet, but remember this post:
>   http://nntp.x.perl.org/group/perl.qa/2213
> which states that Devel::Cover cannot be run from the 't' directory

I don't think there is anything special about the t directory that
upsets Devel::Cover.  The problem is related to relative paths and
changing directories within the tests/test suite.

As a partial solution to the problem you can try giving an absolute path
to the database when Devel::Cover is run, eg

  perl -MDevel::Cover=-db,$PWD/cover_db ...

This particular problem seems to have hit the top of the most wanted
list so I'll see what I can do with it for the next release.

Who are these people who change directories and don't put things back
as they found them? ;-)

-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net

Reply via email to