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


Download files

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

Source Distribution

pytest-fixture-marker-0.1.0.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

pytest_fixture_marker-0.1.0-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page