Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/and-semakin/flake8-pytestrail
Flake8 plugin to check for missing or wrong TestRail test identifiers
https://github.com/and-semakin/flake8-pytestrail
Last synced: about 2 months ago
JSON representation
Flake8 plugin to check for missing or wrong TestRail test identifiers
- Host: GitHub
- URL: https://github.com/and-semakin/flake8-pytestrail
- Owner: and-semakin
- License: mit
- Created: 2020-03-30T06:23:33.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-04T12:11:04.000Z (over 2 years ago)
- Last Synced: 2024-05-07T14:43:46.867Z (about 2 months ago)
- Language: Python
- Homepage:
- Size: 37.1 KB
- Stars: 9
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-flake8-extensions - flake8-pytestrail - Checks TestRail test case IDs. (Testing)
README
# flake8-pytestrail
[![Build Status](https://travis-ci.com/and-semakin/flake8-pytestrail.svg?branch=master)](https://travis-ci.com/and-semakin/flake8-pytestrail)
[![PyPI](https://img.shields.io/pypi/v/flake8-pytestrail)](https://pypi.org/project/flake8-pytestrail/)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/flake8-pytestrail)](https://pypi.org/project/flake8-pytestrail/)
[![PyPI - License](https://img.shields.io/pypi/l/flake8-pytestrail)](https://pypi.org/project/flake8-pytestrail/)A companion Flake8 plugin for [pytest-testrail](https://github.com/allankp/pytest-testrail) package.
## Installation
```
pip install flake8-pytestrail
```or if you use [poetry](https://python-poetry.org/):
```
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.