refactor HttpRunner interface

This commit is contained in:
debugtalk
2018-02-27 13:43:35 +08:00
parent 10efc8f772
commit 06eb5f5f31
2 changed files with 12 additions and 15 deletions

View File

@@ -50,14 +50,10 @@ def main_hrun():
create_scaffold(project_path)
exit(0)
kwargs = {
"failfast": args.failfast
}
run_kwargs = {
"html_report_name": args.html_report_name,
"html_report_template": args.html_report_template
}
result = HttpRunner(args.testset_paths, **kwargs).run(**run_kwargs)
result = HttpRunner(args.testset_paths, failfast=args.failfast).run(
html_report_name=args.html_report_name,
html_report_template=args.html_report_template
)
print_output(result["output"])
return 0 if result["success"] else 1