mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 11:29:48 +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
|
||||
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 -
|
||||
|
||||
@@ -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**
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()})
|
||||
|
||||
@@ -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 ... ]]
|
||||
|
||||
|
||||
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user