Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions doc/en/cache.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ cache: working with cross-testrun state
is compatible regarding command line options and API usage except that you
can only store/receive data between test runs that is json-serializable.

If for any reason you want to disable this plugin, you can do so by
adding ``-p no:cacheprovider`` to the command-line, or more permanently
to your ``pytest.ini`` file:

.. code-block:: ini

[pytest]
addopts = -p no:cacheprovider


Copy link
Contributor

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.

Copy link
Contributor

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).

Usage
---------

Expand Down