File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ def run_tests(options, suites):
272
272
print ('Test suites:' )
273
273
print ([s [0 ] for s in suites ])
274
274
# Run the discovered tests
275
- testRunner = unittest .TextTestRunner (verbosity = 2 )
275
+ testRunner = unittest .TextTestRunner (verbosity = 2 , failfast = options . failfast )
276
276
for mod_name , suite in suites :
277
277
print ('Running %s: (%s tests)' % (mod_name , suite .countTestCases ()))
278
278
res = testRunner .run (suite )
@@ -310,6 +310,8 @@ def parse_args(args):
310
310
parser .add_argument ('--browser' ,
311
311
help = 'Command to launch web browser in which to run browser tests.' )
312
312
parser .add_argument ('tests' , nargs = '*' )
313
+ parser .add_argument ('--failfast' , dest = 'failfast' , action = 'store_const' ,
314
+ const = True , default = False )
313
315
return parser .parse_args ()
314
316
315
317
You can’t perform that action at this time.
0 commit comments