@@ -2066,6 +2066,25 @@ 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: :confval: `strict_config `, :confval: `strict_markers `,
2072+ :confval: `strict_xfail `, and :confval: `strict_parametrization_ids `.
2073+
2074+ If you explicitly set an individual strictness option, it takes precedence over ``strict ``.
2075+
2076+ .. note ::
2077+ If new strictness options are added to pytest in the future, they will also be enabled by ``strict ``.
2078+ We therefore only recommend using this option when using a locked version of pytest.
2079+
2080+ .. code-block :: ini
2081+
2082+ [pytest]
2083+ strict = True
2084+
2085+ .. versionadded :: 9.0
2086+
2087+
20692088.. confval :: strict_xfail
20702089
20712090 If set to ``True ``, tests marked with ``@pytest.mark.xfail `` that actually succeed will by default fail the
@@ -2078,6 +2097,8 @@ passed multiple times. The expected format is ``name=value``. For example::
20782097 [pytest]
20792098 strict_xfail = True
20802099
2100+ You can also enable this option via the :confval: `strict ` option.
2101+
20812102 .. versionchanged :: 9.0
20822103 Renamed from ``xfail_strict `` to ``strict_xfail ``.
20832104 ``xfail_strict `` is accepted as an alias for ``strict_xfail ``.
@@ -2092,6 +2113,8 @@ passed multiple times. The expected format is ``name=value``. For example::
20922113 [pytest]
20932114 strict_config = True
20942115
2116+ You can also enable this option via the :confval: `strict ` option.
2117+
20952118
20962119.. confval :: strict_markers
20972120
@@ -2102,6 +2125,8 @@ passed multiple times. The expected format is ``name=value``. For example::
21022125 [pytest]
21032126 strict_markers = True
21042127
2128+ You can also enable this option via the :confval: `strict ` option.
2129+
21052130
21062131.. confval :: strict_parametrization_ids
21072132
@@ -2115,6 +2140,8 @@ passed multiple times. The expected format is ``name=value``. For example::
21152140 [pytest]
21162141 strict_parametrization_ids = True
21172142
2143+ You can also enable this option via the :confval: `strict ` option.
2144+
21182145 For example,
21192146
21202147 .. code-block :: python
0 commit comments