nose2 data collector for Testgr
Project description
nose2rt - nose2 data collector for Testgr
Plugin for sending HTTP POST updates to your Testgr service.
Installing
pip install nose2rt
Find your nose2 config file and configure as described below.
Example:
[unittest]
plugins = nose2rt.rt
[rt]
endpoint = http://127.0.0.1/loader # Your Testgr service URL
show_errors = True # show POST errors
Launch
nose2 -RT -> will launch nose2 with nose2rt plugin.
nose2 -RT -RTE "DEV" -> will launch nose2 and send your environment name as additional info to the Testgr server.
POST requests examples produced by nose2rt
startTestRun
{
"type": "startTestRun",
"job_id": "07942d9c-03e8-4164-8709-2314119ad60b",
"tests": {
"test_method1": "project.folder.test_something.TestSomething.test_method1",
"test_method2": "project.folder.test_something2.TestSomething2.test_method2"
},
"env": "DEV",
"startTime": "1536775271.8475103"
}
startTest
{
"type": "startTest",
"job_id": "07942d9c-03e8-4164-8709-2314119ad60b",
"test": "project.folder.test_something.TestSomething.test_something",
"startTime": "1536775300.8666112"
}
stopTest
{
"type": "stopTest",
"job_id": "07942d9c-03e8-4164-8709-2314119ad60b",
"test": "project.folder.test_something.TestSomething.test_something",
"stopTime": "1536775311.1239314",
"status": "error",
"msg": [
"<class 'AttributeError'>",
"'NoneType' object has no attribute 'location'",
"<traceback object at 0x7ffac0a10f89>"
]
}
stopRun
{
"type": "stopTestRun",
"job_id": "07942d9c-03e8-4164-8709-2314119ad60b",
"tests_success": "1",
"tests_errors": "1",
"tests_failed": "0",
"tests_skipped": "0",
"stopTime": "1536775311.141048",
"timeTaken": "39.294"
}
Authors
License
This project is licensed under the MIT License - see the LICENSE file for details
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nose2rt-0.2.0.tar.gz
(3.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nose2rt-0.2.0.tar.gz.
File metadata
- Download URL: nose2rt-0.2.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec332b583b36a671cf40f8b1bd867f5528f530310008b41fa27a0d09bf81fbfb
|
|
| MD5 |
9c7dad64e6f84f97f260eb2b0d644657
|
|
| BLAKE2b-256 |
d3e4d45c8c2a7ebc6731d301e08546f8d3f26847dcd7a1159a4ed517949747a4
|
File details
Details for the file nose2rt-0.2.0-py3-none-any.whl.
File metadata
- Download URL: nose2rt-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2607bebe20ee7e6d4c95a906bd4b71e8abd4dba7a0459abea60f6818b0d0ef33
|
|
| MD5 |
25a6aa8613129bfde515b7bc6ec330a8
|
|
| BLAKE2b-256 |
bc4c2f052142fe92007508333d00ea2d9ad8b0d9271159524a8505851dbbd089
|