On Tue, Sep 12, 2006 at 12:36:49PM +0300, Gabor Szabo wrote:
> On 9/11/06, David Golden <[EMAIL PROTECTED]> wrote:
> >They probably need to be run in the same process.  What about using
> >Test::Output or IO::Capture to capture the output (and keep it from
> >Test::Harness) and just running the code with "do code.pl"?
> 
> Thanks, this was a good idea though the main problem I had is
> that I chdir-ed to the 'sample' directory before running the
> sample scripts.
> Devel::Cover did not like this.

Any idea why?  Something to to with relative paths in @INC perhaps?

Devel::Cover itself also does things to turn programs into tests, and to
generate and check against golden results.  You might find something there
useful.  But then again, probably not.

(This is also the reason CPANTS thinks Devel::Cover has no tests.)

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

Reply via email to