mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 15:37:35 +08:00
Stop the test run on the first error or failure.
This commit is contained in:
+2
-1
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user