On 24 Aug 2004, at 16:04, Peter Kay wrote:

I am attempting to write tests (using whichever Tests::...) for a module that will use Test::Harness. The module outputs to STDOUT (it just does).

You might find http://www.mail-archive.com/[EMAIL PROTECTED]/msg01690.html of interest.


[snip]
So far, I've come up with 2 ideas:
1. Hack something up to snatch away STDOUT and hope Test::More handles it correctly.
[snip]

This is what I normally do. Test::Builder dups the filehandles at compile time so it's perfectly safe as long as T::B loads before your filehandle munging occurs.

Cheers,

Adrian



Reply via email to