pytest plugin for creating TestRail runs and adding results
Project description
This is a pytest plugin for creating testruns based on pytest markers. The results of the collected tests will also be updated against the testrun in TestRail.
Installation
pip install pytest-testrail
Configuration
Add a marker to the tests that will be picked up to be added to the run.
from pytest_testrail.plugin import testrail @testrail('C1234', 'C5678') def test_foo(): # test code goes here
Settings file template cfg:
[API] url = https://yoururl.testrail.net/ email = user@email.com password = password [TESTRUN] assignedto_id = 1 project_id = 1 suite_id = 1
Usage
py.test --testrail=<settings file>.cfg
This will create a test run in TestRail, add all marked tests to run. Once the all tests are finished they will be updated in TestRail.
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-testrail-0.0.2.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for pytest_testrail-0.0.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e62ad4b30e3feedfa6a9c9223c87fdb53ca288ce23bd9aa7d7784e28bf4924ef |
|
MD5 | 810169b18279056f5a44b3a6e3e3320e |
|
BLAKE2b-256 | 1e6cfa23cf6ee2162371a7d0e415b73037a6dbd29c3a2f1897b23859baa477ab |