pytest-integration icon indicating copy to clipboard operation
pytest-integration copied to clipboard

Without integration test by default

Open catsymptote opened this issue 5 years ago • 1 comments

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?

catsymptote avatar Jun 27 '20 12:06 catsymptote

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.

jbwdevries avatar Jun 27 '20 18:06 jbwdevries