Metadata-Version: 2.1
Name: pytest-allure-intersection
Version: 1.0.0
Summary: 
Author: Jean Cruypenynck
Author-email: filaton@me.com
Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: allure-pytest (<=2.8.22)
Requires-Dist: pytest (<5)
Description-Content-Type: text/markdown

<p align="center">
  <img src="https://www.dropbox.com/s/yvztjxtcbtw6t6v/pytest-allure-intersection-logo.svg?raw=1" />
</p>
<p align="center" style="font-size:30px;font-weight:bolder;font-family:monospace;font-style:italic">pytest-allure-intersection</p>

## Installation

```bash
> pip install pytest-allure-intersection
```

## Usage

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

If you run:

```bash
> 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 can be selected based on whether they match *both* criteria, *i.e.* a test is selected if its Allure decorators are a superset of the flags requested on the CLI.

You can enable that behavior by passing `--allure-selection-by-intersection`, otherwise the default behavior will not be affected in any way.

## Contributing

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

```bash
> poetry run tox
```
