With pytest, one can mark tests using a decorator
@pytest.mark.slow
def some_slow_test():
pass
Then, from the command line, one can tell pytest to skip the tests marked "slow"
pytest -k-slow
If I have an additional tag:
@pytest.mark.long
def some_long_test()
pass
I would like to be able to skip both long AND slow tests. I've tried this:
pytest -k-slow -k-long
and this:
pytest -k-slow,long
And neither seems to work.
At the command line, how do I tell pytest to skip both the slow AND the long tests?