allure-framework / allure-python

Allure integrations for Python test frameworks
https://allurereport.org/
Apache License 2.0
719 stars 235 forks source link

Add --allure-tags command line option to filter test cases by custom tags and pytest markers #723

Open ShurikMen opened 1 year ago

ShurikMen commented 1 year ago

Context

"@allure.tag", unlike "@pytest.mark" markers, do not require additional definition and can be assigned several pieces at once. But you can't filter tests by these tags. Added a cli parameter to filter tests by tags assigned by allure.tag or pytest.mark. Filtering only works with statically set tags.

Checklist