Pytest: Selecting multiple markers to run

Created on 7 Nov 2019  路  1Comment  路  Source: pytest-dev/pytest

Hello,
Is there a way to give a list of markers to select the tests to be run ?

Something like:
python -m pytest -vv -s tests/ -m "foo1 and foo2"
or
python -m pytest -vv -s tests/ -m "not foo1 and not foo2"

Thanks and regards,
Michael

question

Most helpful comment

-m "foo1 or foo2 or foo3" should work :smile:

>All comments

-m "foo1 or foo2 or foo3" should work :smile:

Was this page helpful?
0 / 5 - 0 ratings