Skip to main content

pytest plugin for interaction with TestRail

Project description

Pytest plugin for interaction with TestRail

Install

pip install pytest-pytestrail

Example

from pytest_pytestrail import pytestrail


@pytestrail.case('C12')
def test_one():
    ...  # test code

@pytestrail.case('C13', 'C14')
def test_two():
    ... # test code

Configuration

Config file

pytest.ini or setup.cfg pytest configuration

[pytest]
pytestrail = True
pytestrail-url = https://exemle.testrail.com/
pytestrail-email = exemle@mail.com
pytestrail-password = password
pytestrail-test-run = 12
pytestrail-no-decorator-skip = True
pytestrail-report = True

or

Command line options

--pytestrail            Enable plugin
--tr-url=URL            TestRail address
--tr-email=EMAIL        Email for the account on the TestRail
--tr-password=PASSWORD  Password for the account on the TestRail
--tr-test-run=12        ID testrun
--tr-no-decorator-skip  Skip tests without decorator
--tr-report             Enable report

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pytest_pytestrail-0.1.6-py3-none-any.whl (6.3 kB) Copy SHA256 hash SHA256 Wheel py3

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page