Stop the test run on the first error or failure.

This commit is contained in:
debugtalk
2017-07-24 22:16:15 +08:00
parent 4468df05ab
commit 9669640949
+2 -1
View File
@@ -48,6 +48,7 @@ def main():
output_folder_name = os.path.basename(os.path.splitext(testset_path)[0]) output_folder_name = os.path.basename(os.path.splitext(testset_path)[0])
kwargs = { kwargs = {
"output": output_folder_name, "output": output_folder_name,
"report_name": report_name "report_name": report_name,
"failfast": True
} }
PyUnitReport.HTMLTestRunner(**kwargs).run(task_suite) PyUnitReport.HTMLTestRunner(**kwargs).run(task_suite)