Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Bailing out from Test::More after 'some' failures

by Perlbotics (Bishop)
on May 15, 2019 at 18:26 UTC ( #11100035=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    ok( 0,    "test $_/3 will fail..." ) for (1..3);
    done_testing;
    
  2. or download this
    ok 1 - okay
    not ok 2 - oops
    ...
    #   Failed test 'test 1/3 will fail...'
    #   at ./tm.pl line 30.
    Bail out!  Limit of 2 errors reached (passed=1, failed=2)!
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11100035]
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 2021-12-06 06:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (31 votes). Check out past polls.

    Notices?