Skip to content

Commit 931823e

Browse files
committed
docs for cache_dir ini option
1 parent c0e5701 commit 931823e

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

doc/en/cache.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _`cache_provider`:
2+
13
Cache: working with cross-testrun state
24
=======================================
35

doc/en/customize.rst

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,6 @@ Builtin configuration file options
243243
from ``pytest.ini``/``tox.ini``/``setup.cfg`` of the project if any,
244244
or up to the file-system root.
245245

246-
247246
.. confval:: filterwarnings
248247

249248
.. versionadded:: 3.1
@@ -262,3 +261,13 @@ Builtin configuration file options
262261
263262
This tells pytest to ignore deprecation warnings and turn all other warnings
264263
into errors. For more information please refer to :ref:`warnings`.
264+
265+
.. confval:: cache_dir
266+
267+
.. versionadded:: 3.2
268+
269+
Sets a directory where stores content of cache plugin. Default directory is
270+
``.cache`` which is created in :ref:`rootdir <rootdir>`. Directory may be
271+
relative or absolute path. If setting relative path, then directory is created
272+
relative to :ref:`rootdir <rootdir>`. For more information about cache plugin
273+
please refer to :ref:`cache_provider`.

0 commit comments

Comments
 (0)