Metadata-Version: 2.1
Name: flake8-pytestrail
Version: 0.1.0a0
Summary: Flake8 plugin to check for missing or wrong TestRail test identifiers
Home-page: https://github.com/and-semakin/flake8-pytestrail
License: MIT
Keywords: flake8,flake8-plugin,linting,linter,code quality,test,tests,testrail,pytest
Author: Andrey Semakin
Author-email: and-semakin@ya.ru
Requires-Python: >=3.6,<4.0
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Framework :: Flake8
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: Quality Assurance
Requires-Dist: attrs (>=19.2.0)
Requires-Dist: flake8 (>=3.0.0)
Project-URL: Repository, https://github.com/and-semakin/flake8-pytestrail
Description-Content-Type: text/markdown

# 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.

