PyTest plugin for TestRail
Project description
pytest-testrail-plugin
PyTest plugin for integration with TestRail
Usage
-
Installing -e git+https://git.cashwagon.com/billing/pytest-testrail-plugin.git#egg=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
Close
Hashes for pytest_testrail_plugin-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d40b89027f809f3aa9ff08ccbae49a766fc0b50b5811f3a5d76a22903f6d011 |
|
MD5 | ccc37e6c717cce39225db20a07832cd2 |
|
BLAKE2b-256 | 96c63a9a49a7eaa6f5b4cf7716afc79c22af22d93542cbb2a4679fa22a3367c8 |
Close
Hashes for pytest_testrail_plugin-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1de4e6cd30a05c58a834eb6e62890e58bd08d0c4cc16667338789e8ed124ab2 |
|
MD5 | 36ca6570f3a15b4b60a4c8c0b2bf509d |
|
BLAKE2b-256 | cc024fa67b1e5332665a3662780c1769fb213c87378335837f9dc7d1e0c20d50 |