mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-14 04:59:40 +08:00
change: add --tb=short for hrun command
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
- change: add `export` keyword in TStep to export session variables from referenced testcase
|
||||
- change: rename TestCaseInOut field, config_vars and export_vars
|
||||
- change: rename StepData field, export_vars
|
||||
- change: add `--tb=short` for `hrun` command to use shorter traceback format by default
|
||||
|
||||
## 3.0.8 (2020-06-04)
|
||||
|
||||
|
||||
@@ -48,6 +48,9 @@ def main_run(extra_args):
|
||||
logger.error("No valid testcases found, exit 1.")
|
||||
sys.exit(1)
|
||||
|
||||
if "--tb=short" not in extra_args_new:
|
||||
extra_args_new.append("--tb=short")
|
||||
|
||||
extra_args_new.extend(testcase_path_list)
|
||||
sys.exit(pytest.main(extra_args_new))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user