pytest data collector plugin for Testgr
Project description
pytest-rt - pytest data collector for Testgr
Plugin for sending HTTP POST pytest updates to your Testgr service
Installing
pip install pytest-rt
Launch
pytest --rt --rtu="http://127.0.0.1/loader" -> will launch pytest with pytest-rt plugin.
pytest --rt --rte=DEV --rtu="http://127.0.0.1/loader" -> will launch pytest with pytest-rt and send your environment name as additional info to the Tesgr server.
POST requests examples produced by pytest-rt
startTestRun
{
"fw": "2",
"type": "startTestRun",
"tests": [{
"location": "test_demo_sample",
"nodeid": "test_positive.py::test_demo_sample"
}],
"env": "STAGE",
"startTime": 1538080435.9450781,
"job_id": "815c5b2d-d3b5-4425-91d1-22df2e032be8"
}
startTestItem
{
"fw": "2",
"type": "startTestItem",
"job_id": "815c5b2d-d3b5-4425-91d1-22df2e032be8",
"test": "test_positive.py::test_demo_sample",
"startTime": "1538080435.9785562"
}
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>"
]
}
stopTestItem
{
"fw": "2",
"type": "stopTestItem",
"job_id": "815c5b2d-d3b5-4425-91d1-22df2e032be8",
"test": "test_positive.py::test_demo_sample",
"status": "passed",
"msg": "",
"stopTime": "1538080435.996512"
}
stopTestRun
{
"fw": "2",
"type": "stopTestRun",
"job_id": "815c5b2d-d3b5-4425-91d1-22df2e032be8",
"stopTime": "1538080436.009181"
}
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
pytest-rt-0.2.0.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for pytest_rt-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a61e558873f5e62340288e241fa66a8d1c998222ab283100beff6bd403cbfe16 |
|
MD5 | 8b51b3419374239da7c0ae56ddd3e4b2 |
|
BLAKE2b-256 | 6a3c850aae66cfe32b71d8fdfb0d92dad049b831d3d5577c9895ecac04319f5e |