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
File details
Details for the file flake8-pytestrail-0.2.1.tar.gz
.
File metadata
- Download URL: flake8-pytestrail-0.2.1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.5 Linux/4.4.0-19041-Microsoft
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2ae0cb2b3d12244e5fb098335b77b5e84fcf39430600576fd42fdb299873c3f |
|
MD5 | 2af93ecc427273ea072397467010b437 |
|
BLAKE2b-256 | 63a9295763559cbbc62fc04d338f2c8f0c07232e4b08d4fa29ae5d37810c27bd |
File details
Details for the file flake8_pytestrail-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: flake8_pytestrail-0.2.1-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.5 Linux/4.4.0-19041-Microsoft
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92129719371300e079b86472ededa73a5e3af7d44abcad104131cfe6e7f1f13b |
|
MD5 | 5f9238f915967d3158e31ed8122ae5e2 |
|
BLAKE2b-256 | 91835fb813b4e7212a07c5c68ba7a1ae1d42c06bef2b7dfb20af881de2526736 |