Skip to content

Commit 1a66a50

Browse files
authored
Merge pull request #5690 from nicoddemus/custom-exit-code-docs
Mention pytest-custom_exit_code in the docs
2 parents 82763a2 + 8db6642 commit 1a66a50

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
@@ -39,6 +39,14 @@ They are represented by the :class:`_pytest.main.ExitCode` enum. The exit codes
3939
4040
from pytest import ExitCode
4141
42+
.. note::
43+
44+
If you would like to customize the exit code in some scenarios, specially when
45+
no tests are collected, consider using the
46+
`pytest-custom_exit_code <https://github.com/yashtodi94/pytest-custom_exit_code>`__
47+
plugin.
48+
49+
4250
Getting help on version, option names, environment variables
4351
--------------------------------------------------------------
4452

0 commit comments

Comments
 (0)