Skip to main content

A simple plugin to detect missed pytest tags and markers"

Project description

PyPI version Python versions See Build Status on Travis CI See Build Status on AppVeyor

A simple plugin to detect missed PyTest tags and Allure BDD markers. Make the repository with your tests more structured and beautiful.


  • List not staged (unit, integration or system) test classes
  • List missed Allure BDD tags for traditional test classes and functions (exclude fixtures and other incompatible objects)


You can install “pytest-markers-presence” via pip from PyPI:

$ pip install pytest-markers-presence


The –stage-markers and other provided options will not run your tests and it’s also sensible for errors in the pytest collection step. If you are using as part of you CI process the recommended way is to run it after the default test run. For example:

  • pytest
  • pytest –stage-markers –bdd-markers

Example of ‘pytest’ run with provided options:

$ pytest –stage-markers

=================== test session starts ===================

(hidden for brevity)

You should set stage marker with @pytest.mark’ (‘unit’, ‘integration’ or ‘system’) for your test class(es): Test class name: ‘TestClass’, location: /path/to/

============== no tests ran in 0.00 seconds ===============

$ pytest –bdd-markers

=================== test session starts ===================

(hidden for brevity)

You should set BDD marker @allure.feature’ for your test class(es): Test class: ‘TestClass’, location: /path/to/

You should set BDD marker @allure.story’ for your test function(s): Test function: ‘test_case’, location: /path/to/

============== no tests ran in 0.00 seconds ===============


Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.


Distributed under the terms of the MIT license, “pytest-markers-presence” is free and open source software


If you encounter any problems, please pytest-markers-presence along with a detailed description.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pytest-markers-presence, version 0.3.0
Filename, size File type Python version Upload date Hashes
Filename, size pytest_markers_presence-0.3.0-py2.py3-none-any.whl (5.9 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size pytest-markers-presence-0.3.0.tar.gz (5.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page