summaryrefslogtreecommitdiff
path: root/doc/en/cache.rst
diff options
context:
space:
mode:
authorBruno Oliveira <nicoddemus@gmail.com>2015-09-28 18:23:08 -0300
committerBruno Oliveira <nicoddemus@gmail.com>2015-09-28 18:23:08 -0300
commit6caa7083db16907960067de8565f27ce455c43d0 (patch)
treef4ffb7cb493a608d59ad37630397b23368d6d009 /doc/en/cache.rst
parentb09d3724a0dcf42fa49a47f001ffe20e39ea6d8c (diff)
downloadpytest-6caa7083db16907960067de8565f27ce455c43d0.tar.gz
Moved more detailed options on how to disable a plugin to plugins.rst
Diffstat (limited to 'doc/en/cache.rst')
-rw-r--r--doc/en/cache.rst15
1 files changed, 6 insertions, 9 deletions
diff --git a/doc/en/cache.rst b/doc/en/cache.rst
index bf923cc6f..027376219 100644
--- a/doc/en/cache.rst
+++ b/doc/en/cache.rst
@@ -10,15 +10,6 @@ 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
-
Usage
---------
@@ -36,6 +27,12 @@ all cross-session cache contents ahead of a test run.
Other plugins may access the `config.cache`_ object to set/get
**json encodable** values between ``py.test`` invocations.
+.. note::
+
+ This plugin is enabled by default, but can be disabled if needed: see
+ :ref:`cmdunregister` (the internal name for this plugin is
+ ``cacheprovider``).
+
Rerunning only failures or failures first
-----------------------------------------------