Skip to main content

No project description provided

Project description

pytest-allure-intersection

Installation

> pip install pytest-allure-intersection

Usage

This pytest plugin modifies the selection behavior of Allure selection options.

If you run:

> pytest --allure-epics=MyGreatEpic --allure-features=MyGreatFeature

By default, this command would select all tests that are decorated either with @allure.epic("MyGreatEpic") or @allure.feature("MyGreatFeature"), i.e. the selection is based on the union of the flags.

After installing the pytest-allure-intersection plugin, tests will be selected only if they match both criteria, i.e. a test is selected if its Allure decorators are a superset of the flags requested on the CLI.

There is nothing to do to use the plugin apart from installing it.

You can restore the default behavior by passing --allure-selection-by-union.

Contributing

pytest-allure-intersection uses Poetry for its development. To run tests, use:

> poetry run tox

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_allure_intersection-0.1.0.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

pytest_allure_intersection-0.1.0-py2.py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 2 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