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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pytest_allure_intersection-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 218cf1e516ac265f72728a1e48e3403595769f70cea5b9d5c396e1d2bb0cac54 |
|
MD5 | 4d97ec946b0b189ab9814711d18ab22e |
|
BLAKE2b-256 | b4bbe68af50b1b7040c816f9a916e743ace993a4756f5c96b303ff356b196c80 |
Hashes for pytest_allure_intersection-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9c19848e349a3eb5037d827d81fbc38a53bed833cb0709e89d05ff48b7513fd |
|
MD5 | c39faa6c0159d7d9efbb8baf1777f1e6 |
|
BLAKE2b-256 | 17b882712d9aecad0937a47166a66737030b3e3797935b54be02fb030d9a2872 |