Merge pull request #806 from httprunner/leo_dev

2.4.7

**Added**

- feat: report user id to sentry

**Fixed**

- fix #797: locusts command error
This commit is contained in:
debugtalk
2019-12-24 15:15:42 +08:00
committed by GitHub
6 changed files with 21 additions and 5 deletions

View File

@@ -30,6 +30,7 @@ jobs:
poetry build
ls dist/*.whl | xargs pip install # test installation
hrun -V
locusts -V
- name: Run smoketest for hrun command
run: |
cd tests/httpbin && hrun basic.yml --failfast && cd -

View File

@@ -1,5 +1,15 @@
# Release History
## 2.4.7 (2019-12-24)
**Added**
- feat: report user id to sentry
**Fixed**
- fix #797: locusts command error
## 2.4.6 (2019-12-23)
**Added**

View File

@@ -132,7 +132,7 @@ requests-toolbelt 0.9.1 A utility belt for advanced users of python-requests
$ poetry run python -m httprunner -h
# 调试运行 locusts
$ pipenv run python -m httprunner.plugins.locusts -h
$ pipenv run python -m httprunner.ext.locusts -h
```
## Docker

View File

@@ -1,11 +1,16 @@
__version__ = "2.4.6"
__version__ = "2.4.7"
__description__ = "One-stop solution for HTTP(S) testing."
__all__ = ["__version__", "__description__"]
import uuid
import sentry_sdk
sentry_sdk.init(
dsn="https://cc6dd86fbe9f4e7fbd95248cfcff114d@sentry.io/1862849",
release="httprunner@{}".format(__version__)
)
with sentry_sdk.configure_scope() as scope:
scope.set_user({"id": uuid.getnode()})

View File

@@ -17,7 +17,7 @@ $ locusts -f xxx.yml --processes
```
```shell script
$ python3 -m httprunner.plugins.locusts -h
$ python3 -m httprunner.ext.locusts -h
Usage: locust [options] [LocustClass [LocustClass2 ... ]]

View File

@@ -1,6 +1,6 @@
[tool.poetry]
name = "httprunner"
version = "2.4.6"
version = "2.4.7"
description = "One-stop solution for HTTP(S) testing."
license = "Apache-2.0"
readme = "README.md"
@@ -51,7 +51,7 @@ coverage = "^4.5.4"
hrun = "httprunner.cli:main"
ate = "httprunner.cli:main"
httprunner = "httprunner.cli:main"
locusts = "httprunner.plugins.locusts.cli:main"
locusts = "httprunner.ext.locusts.cli:main"
[build-system]
requires = ["poetry>=1.0.0"]