Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Quieting Test::More

by haukex (Bishop)
on Jul 04, 2017 at 09:35 UTC ( #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
Node Status?
node history
Node Type: note [id://1194143]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2020-09-29 14:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (146 votes). Check out past polls.

    Notices?