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