Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Sending module output to STDOUT in test

by Solo (Deacon)
on Aug 28, 2014 at 13:24 UTC ( #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? | Other CB clients
Other Users?
Others browsing the Monastery: (1)
As of 2022-05-22 10:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (80 votes). Check out past polls.

    Notices?