go ahead... be a heretic | |
PerlMonks |
Redirecting STDOUTby hesco (Deacon) |
on Feb 11, 2007 at 12:38 UTC ( [id://599451]=perlquestion: print w/replies, xml ) | Need Help?? |
hesco has asked for the wisdom of the Perl Monks concerning the following question:
Poking about in the code for Test::Harness and several responses in SuperSearch is not getting me to the promised land. So permit me please to ask here. I need to redirect STDOUT, and probably STDERR, before its all over, for a test suite, analyze the results and take appropriate action based on that analysis. I'm finding it quite a challenge to figure out the right incantation which will accomplish this. I've left one of my tests commented out. The print statement is writing to the file. But the Test::More->diag() calls are not making it. Neither are the results of the Test::More tests run in the subroutine call to the $self->_test_site() method. I'd certainly appreciate any ideas. -- Hugh
if( $lal && $lol ) { $life++; }
Back to
Seekers of Perl Wisdom
|
|