summaryrefslogtreecommitdiff
path: root/doc/en/usage.rst
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2019-08-04 19:10:36 -0700
committerGitHub <noreply@github.com>2019-08-04 19:10:36 -0700
commit1a66a503b692b562f6cf02cdbf03791b18638820 (patch)
tree4c7a651be2bf23ef002b73a6831ed9b445a613ae /doc/en/usage.rst
parent82763a293af926680598a537551ad2fee771c0f9 (diff)
parent8db6642515c1a5339840f47974ebb4f06d6c0a57 (diff)
downloadpytest-1a66a503b692b562f6cf02cdbf03791b18638820.tar.gz
Merge pull request #5690 from nicoddemus/custom-exit-code-docs
Mention pytest-custom_exit_code in the docs
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 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 <https://github.com/yashtodi94/pytest-custom_exit_code>`__
+ plugin.
+
+
Getting help on version, option names, environment variables
--------------------------------------------------------------