From d58bc146459ae295256bbcf324c08eced354a086 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Adamczak?= Date: Sun, 19 Mar 2017 18:34:43 +0000 Subject: [PATCH 1/2] Added 'Possible exit codes' section to docs (#2239) --- doc/en/usage.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/doc/en/usage.rst b/doc/en/usage.rst index a6fd4892e..8cc682787 100644 --- a/doc/en/usage.rst +++ b/doc/en/usage.rst @@ -19,6 +19,18 @@ You can invoke testing through the Python interpreter from the command line:: This is almost equivalent to invoking the command line script ``pytest [...]`` directly, except that python will also add the current directory to ``sys.path``. +Possible exit codes +-------------------------------------------------------------- + +Running ``pytest`` can result in six different exit codes: + +:Exit code 0: All tests were collected and passed successfully +:Exit code 1: Tests were collected and run but some of the tests failed +:Exit code 2: Test execution was interrupted by the user +:Exit code 3: Internal error happened while executing tests +:Exit code 4: pytest command line usage error +:Exit code 5: No tests were collected + Getting help on version, option names, environment variables -------------------------------------------------------------- From 8b57aaf94410f664d8b5bb2d952943a44d581067 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Adamczak?= Date: Sun, 19 Mar 2017 18:38:41 +0000 Subject: [PATCH 2/2] =?UTF-8?q?Added=20'Pawe=C5=82=20Adamczak'=20to=20AUTH?= =?UTF-8?q?ORS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AUTHORS | 1 + 1 file changed, 1 insertion(+) diff --git a/AUTHORS b/AUTHORS index 063593dd6..025a3c8f6 100644 --- a/AUTHORS +++ b/AUTHORS @@ -117,6 +117,7 @@ Oliver Bestwalter Omar Kohl Omer Hadari Patrick Hayes +Paweł Adamczak Pieter Mulder Piotr Banaszkiewicz Punyashloka Biswal