@@ -2066,6 +2066,32 @@ passed multiple times. The expected format is ``name=value``. For example::
20662066 "auto" can be used to explicitly use the global verbosity level.
20672067
20682068
2069+ .. confval :: strict
2070+
2071+ If set to ``True ``, enables all strictness options:
2072+
2073+ * :confval: `strict_config `
2074+ * :confval: `strict_markers `
2075+ * :confval: `strict_xfail `
2076+ * :confval: `strict_parametrization_ids `
2077+
2078+ Plugins may also enable their own strictness options.
2079+
2080+ If you explicitly set an individual strictness option, it takes precedence over ``strict ``.
2081+
2082+ .. note ::
2083+ If new strictness options are added to pytest in the future, they will also be enabled by ``strict ``.
2084+ We therefore only recommend using this option when using a locked version of pytest,
2085+ or if you want to proactively adopt new strictness options as they are added.
2086+
2087+ .. code-block :: ini
2088+
2089+ [pytest]
2090+ strict = True
2091+
2092+ .. versionadded :: 9.0
2093+
2094+
20692095.. confval :: strict_xfail
20702096
20712097 If set to ``True ``, tests marked with ``@pytest.mark.xfail `` that actually succeed will by default fail the
@@ -2078,6 +2104,8 @@ passed multiple times. The expected format is ``name=value``. For example::
20782104 [pytest]
20792105 strict_xfail = True
20802106
2107+ You can also enable this option via the :confval: `strict ` option.
2108+
20812109 .. versionchanged :: 9.0
20822110 Renamed from ``xfail_strict `` to ``strict_xfail ``.
20832111 ``xfail_strict `` is accepted as an alias for ``strict_xfail ``.
@@ -2092,6 +2120,8 @@ passed multiple times. The expected format is ``name=value``. For example::
20922120 [pytest]
20932121 strict_config = True
20942122
2123+ You can also enable this option via the :confval: `strict ` option.
2124+
20952125
20962126.. confval :: strict_markers
20972127
@@ -2102,6 +2132,8 @@ passed multiple times. The expected format is ``name=value``. For example::
21022132 [pytest]
21032133 strict_markers = True
21042134
2135+ You can also enable this option via the :confval: `strict ` option.
2136+
21052137
21062138.. confval :: strict_parametrization_ids
21072139
@@ -2115,6 +2147,8 @@ passed multiple times. The expected format is ``name=value``. For example::
21152147 [pytest]
21162148 strict_parametrization_ids = True
21172149
2150+ You can also enable this option via the :confval: `strict ` option.
2151+
21182152 For example,
21192153
21202154 .. code-block :: python
0 commit comments