allankp / pytest-testrail

pytest plugin for integration with TestRail, for creating testruns and updating results
MIT License
96 stars 124 forks source link

Flake8 plugin to check for missing or wrong TestRail test identifiers #129

Closed and-semakin closed 4 years ago

and-semakin commented 4 years ago

Let me self-advertise a little bit. I've written a Flake8 plugin that helps to keep track of missing or wrongly written TestRail identifiers in large code bases. Works well with pytest-testrail.

Example output:

$ flake8 .
./test/test_1.py:55:1: TR001 Missing `@pytestrail.case()` decorator
./test/test_1:61:1: TR001 Missing `@pytestrail.case()` decorator
./test/test_1:68:1: TR001 Missing `@pytestrail.case()` decorator
./test/test_2:190:5: TR003 Test case ID should match "^C\d+$" pattern

The code is here: https://github.com/and-semakin/flake8-pytestrail Feel free to file an issue if something is wrong or missing.

And give it a star! 😄