mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-15 20:38:44 +08:00
HttpRunner 2.0 is comming!
1, new design for testcase format; 2, refactor testcase layer mechanism.
This commit is contained in:
@@ -77,17 +77,13 @@ def main_hrun():
|
||||
create_scaffold(project_name)
|
||||
exit(0)
|
||||
|
||||
try:
|
||||
runner = HttpRunner(
|
||||
failfast=args.failfast
|
||||
)
|
||||
runner.run(
|
||||
args.testcase_paths,
|
||||
dot_env_path=args.dot_env_path
|
||||
)
|
||||
except Exception:
|
||||
logger.log_error("!!!!!!!!!! exception stage: {} !!!!!!!!!!".format(runner.exception_stage))
|
||||
raise
|
||||
for path in args.testcase_paths:
|
||||
try:
|
||||
runner = HttpRunner(failfast=args.failfast)
|
||||
runner.run(path, dot_env_path=args.dot_env_path)
|
||||
except Exception:
|
||||
logger.log_error("!!!!!!!!!! exception stage: {} !!!!!!!!!!".format(runner.exception_stage))
|
||||
raise
|
||||
|
||||
if not args.no_html_report:
|
||||
runner.gen_html_report(
|
||||
|
||||
Reference in New Issue
Block a user