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.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pytest_pytestrail-0.2.0-py3-none-any.whl (6.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page