We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44cd8a3 commit a64298fCopy full SHA for a64298f
doc/en/mark.rst
@@ -43,7 +43,17 @@ You can register custom marks in your ``pytest.ini`` file like this:
43
slow: marks tests as slow (deselect with '-m "not slow"')
44
serial
45
46
-Note that everything after the ``:`` is an optional description.
+or in your ``pyproject.toml`` file like this:
47
+
48
+.. code-block:: toml
49
50
+ [tool.pytest.ini_options]
51
+ markers = [
52
+ "slow: marks tests as slow (deselect with '-m \"not slow\"')",
53
+ "serial",
54
+ ]
55
56
+Note that everything past the ``:`` after the mark name is an optional description.
57
58
Alternatively, you can register new markers programmatically in a
59
:ref:`pytest_configure <initialization-hooks>` hook:
0 commit comments