Merge pull request #851 from httprunner/leo_dev

2.5.6

**Added**

- feat: save variables and export data to JSON files when specified `--save-tests`
This commit is contained in:
debugtalk
2020-02-05 01:04:14 +08:00
committed by GitHub
5 changed files with 12 additions and 3 deletions

View File

@@ -1,5 +1,11 @@
# Release History
## 2.5.6 (2020-02-05)
**Added**
- feat: save variables and export data to JSON files when specified `--save-tests`
## 2.5.5 (2020-01-06)
**Fixed**

View File

@@ -1,4 +1,4 @@
__version__ = "2.5.5"
__version__ = "2.5.6"
__description__ = "One-stop solution for HTTP(S) testing."
__all__ = ["__version__", "__description__"]

View File

@@ -221,6 +221,9 @@ class HttpRunner(object):
if self.save_tests:
utils.dump_logs(self._summary, project_mapping, "summary")
# save variables and export data
vars_out = self.get_vars_out()
utils.dump_logs(vars_out, project_mapping, "vars_out")
return self._summary

View File

@@ -49,7 +49,7 @@ def main():
help="Specify report file path, this has higher priority than specifying report dir.")
parser.add_argument(
'--save-tests', action='store_true', default=False,
help="Save loaded/parsed/summary json data to JSON files.")
help="Save loaded/parsed/vars_out/summary json data to JSON files.")
parser.add_argument(
'--failfast', action='store_true', default=False,
help="Stop the test run on the first error or failure.")

View File

@@ -1,6 +1,6 @@
[tool.poetry]
name = "httprunner"
version = "2.5.5"
version = "2.5.6"
description = "One-stop solution for HTTP(S) testing."
license = "Apache-2.0"
readme = "README.md"