Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Without integration test by default #8

Open
catsymptote opened this issue Jun 27, 2020 · 1 comment
Open

Without integration test by default #8

catsymptote opened this issue Jun 27, 2020 · 1 comment

Comments

@catsymptote
Copy link

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?
@jbwdevries
Copy link
Owner

jbwdevries commented Jun 27, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants