pytest-integration
pytest-integration copied to clipboard
Without integration test by default
Background I really like this plugin, but I dislike that integration tests and slow-integration tests are ran by default. The main reason, for me at least, to skip these tests, is to save time. If I have to write --without-integration --without-slow-integration, less time is saved. (Not a big issue, I know, but still. :)
Question Is it possible and practical to change the default settings (either as part of the plugin, or just for my project, such that:
- "python -m pytest " runs without integration tests, and
- "python -m --with-integration --with-slow-integration" (or something like that), includes integration tests?
Have you considered using addopts in your pytest.ini? I understand you can add --without-integration --without-slow-integration there, it may do what you want.