diff --git a/doc/en/usage.rst b/doc/en/usage.rst index cb99989eb..84edb5705 100644 --- a/doc/en/usage.rst +++ b/doc/en/usage.rst @@ -39,6 +39,14 @@ They are represented by the :class:`_pytest.main.ExitCode` enum. The exit codes from pytest import ExitCode +.. note:: + + If you would like to customize the exit code in some scenarios, specially when + no tests are collected, consider using the + `pytest-custom_exit_code `__ + plugin. + + Getting help on version, option names, environment variables --------------------------------------------------------------