Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by Perlbotics (Archbishop)
on May 15, 2019 at 18:26 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-03-28 13:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found