PyTest plugin for TestRail
Project description
pytest-testrail-plugin
PyTest plugin for integration with TestRail
Usage
-
Installing pip install pytest-testrail-plugin
-
Create config file .cfg
test/testrail_config.cfg
:
[API]
url = https://cashwagon.testrail.io
email = name@cashwagon.com
password = pass
[TESTRUN]
project_id = your ID
root_section = directory_name
-
Use
@pytestrail.case()
decorator for testsfrom pytest_testrail_plugin.plugin import pytestrail
-
Use docstring in
yaml
orjson
format if you want customize test casefrom pytest_testrail_plugin.plugin import pytestrail @pytestrail.case() def test_foo(): """ title: case title in TestRail custom_preconds: preconditions info custom_steps: steps info custom_expected: this is too long a string to print in a single line """ assert 1 == 1
-
Run test with flags
py.test --testrail --tr-config=path/to/config/file.cfg
If you want to delete unused cases and sections use
--tr-unsafe
flag:py.test --testrail --tr-config=path/to/config/file.cfg --tr-unsafe
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
Built Distribution
File details
Details for the file pytest_testrail_plugin-0.0.3.tar.gz
.
File metadata
- Download URL: pytest_testrail_plugin-0.0.3.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06bd099b823b20b329864ae498d418dcae7c8ec3268d293731fc26ef63294089 |
|
MD5 | 54a018bedefc125c9c964c182e6973b8 |
|
BLAKE2b-256 | d4e4a4c9fbbfe9247c6a8cfd6d0858bd302c2b737ec72270d84ec0b85fb8b286 |
File details
Details for the file pytest_testrail_plugin-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: pytest_testrail_plugin-0.0.3-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36af8fd41a2b866ecef542d46cdfe92ad6979e444e8d8d24d5df515c23378740 |
|
MD5 | 13e2da4abe55f545b3fbcd97a72288f9 |
|
BLAKE2b-256 | 99fe2e552ce1faa7eb29a8b547b2ff0f5a5e1bb45a1cfbef56fd624095fa4b95 |