mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 11:29:48 +08:00
cli support --report-file parameter.
This commit is contained in:
@@ -35,6 +35,9 @@ def main_hrun():
|
||||
parser.add_argument(
|
||||
'--report-dir',
|
||||
help="specify report save directory.")
|
||||
parser.add_argument(
|
||||
'--report-file',
|
||||
help="specify report file name.")
|
||||
parser.add_argument(
|
||||
'--failfast', action='store_true', default=False,
|
||||
help="Stop the test run on the first error or failure.")
|
||||
@@ -78,7 +81,8 @@ def main_hrun():
|
||||
report_template=args.report_template,
|
||||
report_dir=args.report_dir,
|
||||
log_level=args.log_level,
|
||||
log_file=args.log_file
|
||||
log_file=args.log_file,
|
||||
report_file=args.report_file
|
||||
)
|
||||
try:
|
||||
for path in args.testcase_paths:
|
||||
|
||||
Reference in New Issue
Block a user