Skip to main content

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


pip install pytest-rt


pytest --rt --rtu="" -> will launch pytest with pytest-rt plugin.
pytest --rt --rte=DEV --rtu="" -> 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


	"fw": "2",
	"type": "startTestRun",
	"tests": [{
		"location": "test_demo_sample",
		"nodeid": ""
	"env": "STAGE",
	"startTime": 1538080435.9450781,
	"job_id": "815c5b2d-d3b5-4425-91d1-22df2e032be8"


	"fw": "2",
	"type": "startTestItem",
	"job_id": "815c5b2d-d3b5-4425-91d1-22df2e032be8",
	"test": "",
	"startTime": "1538080435.9785562"


	"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>"


	"fw": "2",
	"type": "stopTestItem",
	"job_id": "815c5b2d-d3b5-4425-91d1-22df2e032be8",
	"test": "",
	"status": "passed",
	"msg": "",
	"stopTime": "1538080435.996512"


	"fw": "2",
	"type": "stopTestRun",
	"job_id": "815c5b2d-d3b5-4425-91d1-22df2e032be8",
	"stopTime": "1538080436.009181"


Andrey Smirnov


This project is licensed under the MIT License - see the LICENSE file for details

Project details

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)

Uploaded source

Built Distribution

pytest_rt-0.2.0-py3-none-any.whl (4.1 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page