Skip to content

Commit 8db6642

Browse files
committed
Mention pytest-custom_exit_code in the docs
Related to #5689
1 parent 0d3958e commit 8db6642

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/en/usage.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ Running ``pytest`` can result in six different exit codes:
3535

3636
They are represented by the :class:`_pytest.main.ExitCode` enum.
3737

38+
.. note::
39+
40+
If you would like to customize the exit code in some scenarios, specially when
41+
no tests are collected, consider using the
42+
`pytest-custom_exit_code <https://github.com/yashtodi94/pytest-custom_exit_code>`__
43+
plugin.
44+
45+
3846
Getting help on version, option names, environment variables
3947
--------------------------------------------------------------
4048

0 commit comments

Comments
 (0)