Flake8 plugin to check for missing or wrong TestRail test identifiers
Project description
flake8-pytestrail
A companion Flake8 plugin for pytest-testrail package.
Installation
pip install flake8-pytestrail
or if you use poetry:
poetry add --dev flake8-pytestrail
Usage
⚠️ At the moment plugin assumes that you use default
pytest
configuration (test files are all can be matched by**/test_*.py
glob). It also assumes that you want all test cases to have been registered inside of TestRail and have ID.
flake8 .
Error list
- TR001 Missing
@pytestrail.case()
decorator - TR002 Multiple
@pytestrail.case()
decorators - TR003 Test case ID should match
"^C\d+$"
pattern
Configuration
There is no way to configure the plugin at the moment.
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 flake8_pytestrail-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f65b0d7f7627f2acb7eba17be77f17903abe906ec55ca21b7606abbaa1039ce |
|
MD5 | ae2a71b5a51f4a0c60f1beb0778e456a |
|
BLAKE2b-256 | 1c27738d7214b34c4ad1ffa8049617f58b1da742fae075481da81e2f23765a06 |