in reply to Re: Capturing stderr from a test script executed by Test::Harness::Straps
in thread Capturing stderr from a test script executed by Test::Harness::Straps
Check out Test::Output and Test::Output::Tie.
Nope. These are for testing things that output to STDERR (and other filehandles), not for capturing the STDERR output from test scripts :-)
For the latter look at analyze() from Test::Harness::Straps and use some kind of IPC3/Run3 variant to capture STDERR. See Quiet test runner for an example.
|
|---|