Skip to content

Commit 6cfe087

Browse files
Merge pull request pytest-dev#2320 from pawelad/2239/exit-code-docs
Added 'Possible exit codes' section to docs (pytest-dev#2239)
2 parents 75ec893 + 8b57aaf commit 6cfe087

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ Oliver Bestwalter
117117
Omar Kohl
118118
Omer Hadari
119119
Patrick Hayes
120+
Paweł Adamczak
120121
Pieter Mulder
121122
Piotr Banaszkiewicz
122123
Punyashloka Biswal

doc/en/usage.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,18 @@ You can invoke testing through the Python interpreter from the command line::
1919
This is almost equivalent to invoking the command line script ``pytest [...]``
2020
directly, except that python will also add the current directory to ``sys.path``.
2121

22+
Possible exit codes
23+
--------------------------------------------------------------
24+
25+
Running ``pytest`` can result in six different exit codes:
26+
27+
:Exit code 0: All tests were collected and passed successfully
28+
:Exit code 1: Tests were collected and run but some of the tests failed
29+
:Exit code 2: Test execution was interrupted by the user
30+
:Exit code 3: Internal error happened while executing tests
31+
:Exit code 4: pytest command line usage error
32+
:Exit code 5: No tests were collected
33+
2234
Getting help on version, option names, environment variables
2335
--------------------------------------------------------------
2436

0 commit comments

Comments
 (0)