Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Quieting Test::More

by haukex (Archbishop)
on Jul 04, 2017 at 09:35 UTC ( [id://1194143]=note: print w/replies, xml ) Need Help??


in reply to Quieting Test::More

Is this the kind of thing you're looking for? See also reset_outputs in Test::Builder.

#!/usr/bin/env perl use warnings; use strict; use Test::More tests=>200; use File::Spec; Test::More->builder->output(File::Spec->devnull); is 1,1 for 1..199; # lots of output is 1,2, 'test failure'; print "print\n"; warn "warn\n"; diag "diag"; note "note"; __END__ 1..200 # Failed test 'test failure' # at tst.pl line 11. # got: '1' # expected: '2' print warn # diag # Looks like you failed 1 test of 200.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2024-04-19 15:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found