flake8-pytestrail
flake8-pytestrail copied to clipboard
Flake8 plugin to check for missing or wrong TestRail test identifiers
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
pytestconfiguration (test files are all can be matched by**/test_*.pyglob). 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.