pytest-dev / pytest-runner

MIT License
56 stars 21 forks source link

How to run multiple isolated tests? #35

Closed kravemir closed 6 years ago

kravemir commented 6 years ago

I've got multiple test folders - 'tests', 'tests_integration', 'tests_integration2',... Integration tests use different betamax/session configurations. And, they collide, if they are run together with: python -m pytest

I need to run each test folder individually:

How can I achieve this with pytest-runner?

jaraco commented 6 years ago

Anything in --addopts is passed through to pytest, so

python setup.py pytest --addopts='tests'

kravemir commented 6 years ago

I have discovered it literally 30 seconds ago. Thanks for response, anyway.