summaryrefslogtreecommitdiff
path: root/doc/en/usage.rst
diff options
context:
space:
mode:
authorBruno Oliveira <nicoddemus@gmail.com>2019-08-03 10:15:56 -0300
committerBruno Oliveira <nicoddemus@gmail.com>2019-08-03 10:15:56 -0300
commit8db6642515c1a5339840f47974ebb4f06d6c0a57 (patch)
tree1b974c76f0442b5556011c0be583a74ab43f5772 /doc/en/usage.rst
parent0d3958e8dec5f78ed19ba5bc7a00a35f3ea3deb0 (diff)
downloadpytest-8db6642515c1a5339840f47974ebb4f06d6c0a57.tar.gz
Mention pytest-custom_exit_code in the docs
Related to #5689
Diffstat (limited to 'doc/en/usage.rst')
-rw-r--r--doc/en/usage.rst8
1 files changed, 8 insertions, 0 deletions
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 <https://github.com/yashtodi94/pytest-custom_exit_code>`__
+ plugin.
+
+
Getting help on version, option names, environment variables
--------------------------------------------------------------