-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Add docs on how to disable cache provider #1058
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
Add docs on how to disable cache provider #1058
Conversation
can it actually be reenabled? |
Do you mean without removing the option from |
[pytest] | ||
addopts = -p no:cacheprovider | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i wonder if it's the right thing to advise to do this on a per-project level. You might want cache behaviour on dev machines but not on CI systems. Therefore we should rather advise for setting the environment variable PYTEST_ADDOPTS
for respective environments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in addition we should see to add some info about environment variables with py.test --help
i guess. (like "tox -h" does) (but than can be done in a separate future PR).
Added environment variables to |
Can we merge this? |
Add docs on how to disable cache provider
of course, sorry for the delay |
No worries! 😄 |
After discussion in #1029
I suggest we start to advise people who are having problems related to
cache
to use this trick so it doesn't affect their use ofpytest-2.8
and force them to pin down topytest-2.7.X
.