Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Sending module output to STDOUT in test

by Solo (Deacon)
on Aug 28, 2014 at 13:24 UTC ( [id://1098869]=note: print w/replies, xml ) Need Help??


in reply to Sending module output to STDOUT in test

If you're willing to use STDERR, you'd just need to prove --merge ...

If you really want to send to STDOUT instead of STDERR, you could use something like Test::Trap to capture STDOUT to send to diag().

use Test::More; use Test::Trap; my @r = trap { some_code(@some_parameters) }; diag($trap->stdout);

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1098869]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-19 04:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found