mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-13 08:29:45 +08:00
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:
@@ -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**
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
__version__ = "2.5.5"
|
||||
__version__ = "2.5.6"
|
||||
__description__ = "One-stop solution for HTTP(S) testing."
|
||||
|
||||
__all__ = ["__version__", "__description__"]
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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.")
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user