mirror of
https://github.com/httprunner/httprunner.git
synced 2026-08-28 19:47:14 +08:00
fix: dump json file name is empty when running relative testfile
This commit is contained in:
@@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
- fix: typo testfile_paths
|
- fix: typo testfile_paths
|
||||||
- fix: check if locustio installed
|
- fix: check if locustio installed
|
||||||
|
- fix: dump json file name is empty when running relative testfile
|
||||||
|
|
||||||
## 2.4.0 (2019-12-11)
|
## 2.4.0 (2019-12-11)
|
||||||
|
|
||||||
|
|||||||
@@ -480,11 +480,10 @@ def load_project_data(test_path, dot_env_path=None):
|
|||||||
debugtalk_functions = {}
|
debugtalk_functions = {}
|
||||||
|
|
||||||
# locate PWD and load debugtalk.py functions
|
# locate PWD and load debugtalk.py functions
|
||||||
|
|
||||||
project_mapping["PWD"] = project_working_directory
|
project_mapping["PWD"] = project_working_directory
|
||||||
functions.PWD = project_working_directory # TODO: remove
|
functions.PWD = project_working_directory # TODO: remove
|
||||||
project_mapping["functions"] = debugtalk_functions
|
project_mapping["functions"] = debugtalk_functions
|
||||||
project_mapping["test_path"] = test_path
|
project_mapping["test_path"] = os.path.abspath(test_path)
|
||||||
|
|
||||||
# load api
|
# load api
|
||||||
tests_def_mapping["api"] = load_api_folder(os.path.join(project_working_directory, "api"))
|
tests_def_mapping["api"] = load_api_folder(os.path.join(project_working_directory, "api"))
|
||||||
|
|||||||
Reference in New Issue
Block a user