Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 rifling through the Monastery: (1)
As of 2021-08-05 01:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My primary motivation for participating at PerlMonks is: (Choices in context)








    Results (44 votes). Check out past polls.

    Notices?