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
Close
Hashes for pytest_testrail_plugin-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1056cb60b89c0a6578c73e0596cd0001abdb15650cea7174032a2700be987938 |
|
MD5 | 24731e9ba9ae0d1eaa2311a76394f95a |
|
BLAKE2b-256 | 728a4a39b92ee73a4a25a91a7c67d71aef1796404c3ae7065ff932aa4d6e1e2d |
Close
Hashes for pytest_testrail_plugin-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02191bf7dec74257ea3a871c528472d20543f598efef6273813f51add3480c12 |
|
MD5 | 6bed8695f22075f90bedd27c2ef339f9 |
|
BLAKE2b-256 | 44e8967341a425cac84d08aec1fcaed30e712471af3c099b63571d9850a2d05a |