Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tests/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def run_tests(options, suites):
print('Test suites:')
print([s[0] for s in suites])
# Run the discovered tests
testRunner = unittest.TextTestRunner(verbosity=2)
testRunner = unittest.TextTestRunner(verbosity=2, failfast=options.failfast)
for mod_name, suite in suites:
print('Running %s: (%s tests)' % (mod_name, suite.countTestCases()))
res = testRunner.run(suite)
Expand Down Expand Up @@ -310,6 +310,8 @@ def parse_args(args):
parser.add_argument('--browser',
help='Command to launch web browser in which to run browser tests.')
parser.add_argument('tests', nargs='*')
parser.add_argument('--failfast', dest='failfast', action='store_const',
const=True, default=False)
return parser.parse_args()


Expand Down