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.
--tr_name='My Test Run'
Testruns can be named using the above flag, if this is not set a generated one will be used. ‘ Automation Run “timestamp” ‘
--no-ssl-cert-check
This flag can be used prevent checking for a valid SSL certificate on TestRail host.
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
File details
Details for the file pytest-testrail-0.0.10.tar.gz.
File metadata
- Download URL: pytest-testrail-0.0.10.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3c97b19a5a6d32d8c2eeada4d71c8252854d909f681aeebcae4edbac190f279
|
|
| MD5 |
d2ef09f0cc714a68bb15c257b41261aa
|
|
| BLAKE2b-256 |
5b523708b9532bb7f3a9f8d72c7c609298de42a000411f99e3b96dcae7a222c3
|