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.1.0a0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d508fb67cd2215b6bf965162a2ab1b822ffd5cf0cf965548c3d144ed71b99c09 |
|
MD5 | 8afbdd2300df83b8939a386c0d6863e9 |
|
BLAKE2b-256 | e960382d9570ee98dee1fb52f0dd76f45e5ff1c8e020a05e73c7fce7267b810e |
Close
Hashes for flake8_pytestrail-0.1.0a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dec893e70c7132b8d50d80a152f7b3938b2e12baba9a74012647589e08a0ed97 |
|
MD5 | 4ba0eaaec05d4445d7bd06cc6518dc48 |
|
BLAKE2b-256 | fb894e5e7c78b49f239d12db21d8e05b63b66411354a547714566f8750f8a797 |