mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-10 23:12:41 +08:00
dump loaded tests when running tests_mapping directly
This commit is contained in:
@@ -157,6 +157,9 @@ class HttpRunner(object):
|
|||||||
def run_tests(self, tests_mapping):
|
def run_tests(self, tests_mapping):
|
||||||
""" run testcase/testsuite data
|
""" run testcase/testsuite data
|
||||||
"""
|
"""
|
||||||
|
if self.save_tests:
|
||||||
|
utils.dump_tests(tests_mapping, "loaded")
|
||||||
|
|
||||||
# parse tests
|
# parse tests
|
||||||
self.exception_stage = "parse tests"
|
self.exception_stage = "parse tests"
|
||||||
parsed_tests_mapping = parser.parse_tests(tests_mapping)
|
parsed_tests_mapping = parser.parse_tests(tests_mapping)
|
||||||
@@ -211,9 +214,6 @@ class HttpRunner(object):
|
|||||||
if mapping:
|
if mapping:
|
||||||
tests_mapping["project_mapping"]["variables"] = mapping
|
tests_mapping["project_mapping"]["variables"] = mapping
|
||||||
|
|
||||||
if self.save_tests:
|
|
||||||
utils.dump_tests(tests_mapping, "loaded")
|
|
||||||
|
|
||||||
return self.run_tests(tests_mapping)
|
return self.run_tests(tests_mapping)
|
||||||
|
|
||||||
def run(self, path_or_tests, dot_env_path=None, mapping=None):
|
def run(self, path_or_tests, dot_env_path=None, mapping=None):
|
||||||
|
|||||||
Reference in New Issue
Block a user