Skip to main content

A pytest plugin to add markers based on fixtures used.

Project description

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

A pytest plugin to add markers based on fixtures used.


Why

Ever found yourself wanting to run all tests that use a certain fixture? This plugin will allow you to do that.

Installation

You can install “pytest-fixture-marker” via pip from PyPI:

$ pip install pytest-fixture-marker

Usage

Once installed, the plugin will automatically mark each test. Marker names are generated from the fixture names.:

$ # run all tests that use the tempdir fixture
$ pytest -m tempdir_fixture

Contributing

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.

License

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

Issues

If you encounter any problems, please file an issue along with a detailed description.

Project details


Release history Release notifications

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
pytest_fixture_marker-0.1.0-py3-none-any.whl (3.8 kB) Copy SHA256 hash SHA256 Wheel py3
pytest-fixture-marker-0.1.0.tar.gz (3.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page