From 8db6642515c1a5339840f47974ebb4f06d6c0a57 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Sat, 3 Aug 2019 10:15:56 -0300 Subject: [PATCH] Mention pytest-custom_exit_code in the docs Related to #5689 --- doc/en/usage.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/en/usage.rst b/doc/en/usage.rst index 41d51adee..92aad8b62 100644 --- a/doc/en/usage.rst +++ b/doc/en/usage.rst @@ -35,6 +35,14 @@ Running ``pytest`` can result in six different exit codes: They are represented by the :class:`_pytest.main.ExitCode` enum. +.. 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 --------------------------------------------------------------