mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-07 07:21:23 +08:00
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:
1
.github/workflows/integration_test.yml
vendored
1
.github/workflows/integration_test.yml
vendored
@@ -30,6 +30,7 @@ jobs:
|
|||||||
poetry build
|
poetry build
|
||||||
ls dist/*.whl | xargs pip install # test installation
|
ls dist/*.whl | xargs pip install # test installation
|
||||||
hrun -V
|
hrun -V
|
||||||
|
locusts -V
|
||||||
- name: Run smoketest for hrun command
|
- name: Run smoketest for hrun command
|
||||||
run: |
|
run: |
|
||||||
cd tests/httpbin && hrun basic.yml --failfast && cd -
|
cd tests/httpbin && hrun basic.yml --failfast && cd -
|
||||||
|
|||||||
@@ -1,5 +1,15 @@
|
|||||||
# Release History
|
# 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)
|
## 2.4.6 (2019-12-23)
|
||||||
|
|
||||||
**Added**
|
**Added**
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ requests-toolbelt 0.9.1 A utility belt for advanced users of python-requests
|
|||||||
$ poetry run python -m httprunner -h
|
$ poetry run python -m httprunner -h
|
||||||
|
|
||||||
# 调试运行 locusts
|
# 调试运行 locusts
|
||||||
$ pipenv run python -m httprunner.plugins.locusts -h
|
$ pipenv run python -m httprunner.ext.locusts -h
|
||||||
```
|
```
|
||||||
|
|
||||||
## Docker
|
## Docker
|
||||||
|
|||||||
@@ -1,11 +1,16 @@
|
|||||||
__version__ = "2.4.6"
|
__version__ = "2.4.7"
|
||||||
__description__ = "One-stop solution for HTTP(S) testing."
|
__description__ = "One-stop solution for HTTP(S) testing."
|
||||||
|
|
||||||
__all__ = ["__version__", "__description__"]
|
__all__ = ["__version__", "__description__"]
|
||||||
|
|
||||||
|
import uuid
|
||||||
|
|
||||||
import sentry_sdk
|
import sentry_sdk
|
||||||
|
|
||||||
sentry_sdk.init(
|
sentry_sdk.init(
|
||||||
dsn="https://cc6dd86fbe9f4e7fbd95248cfcff114d@sentry.io/1862849",
|
dsn="https://cc6dd86fbe9f4e7fbd95248cfcff114d@sentry.io/1862849",
|
||||||
release="httprunner@{}".format(__version__)
|
release="httprunner@{}".format(__version__)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
with sentry_sdk.configure_scope() as scope:
|
||||||
|
scope.set_user({"id": uuid.getnode()})
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ $ locusts -f xxx.yml --processes
|
|||||||
```
|
```
|
||||||
|
|
||||||
```shell script
|
```shell script
|
||||||
$ python3 -m httprunner.plugins.locusts -h
|
$ python3 -m httprunner.ext.locusts -h
|
||||||
|
|
||||||
Usage: locust [options] [LocustClass [LocustClass2 ... ]]
|
Usage: locust [options] [LocustClass [LocustClass2 ... ]]
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "httprunner"
|
name = "httprunner"
|
||||||
version = "2.4.6"
|
version = "2.4.7"
|
||||||
description = "One-stop solution for HTTP(S) testing."
|
description = "One-stop solution for HTTP(S) testing."
|
||||||
license = "Apache-2.0"
|
license = "Apache-2.0"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
@@ -51,7 +51,7 @@ coverage = "^4.5.4"
|
|||||||
hrun = "httprunner.cli:main"
|
hrun = "httprunner.cli:main"
|
||||||
ate = "httprunner.cli:main"
|
ate = "httprunner.cli:main"
|
||||||
httprunner = "httprunner.cli:main"
|
httprunner = "httprunner.cli:main"
|
||||||
locusts = "httprunner.plugins.locusts.cli:main"
|
locusts = "httprunner.ext.locusts.cli:main"
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["poetry>=1.0.0"]
|
requires = ["poetry>=1.0.0"]
|
||||||
|
|||||||
Reference in New Issue
Block a user