I understand I can mark tests with `@pytest.mark.whatever` and run them specifically with `pytest -m whatever`, or run skip them with `pytest -m 'not whatever'`. But how I can configure pytest in my package such that the default behavior is to skip those tests?

Specifically, I have some tests that are very slow (multiple seconds each). I want to mark them 'slow', and have the default behavior when running `pytest` be to skip them. That way they will only run if you explicitly run them with `pytest -m slow`.

Is there a way to configure this in conftest.py?

-ofer
_______________________________________________
Pytest-dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pytest-dev

Reply via email to