You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stopping on collection errors was introduced in #1628 (via #1421), but it uses session.Interrupted, which results in exit code 2 (and this means "interrupted by the user", handled as KeyboardInterrupt even):
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
die to how exit codes are used in real-world deployments, we are in a bit of a bad position,
i believe we need a major release to shake up the exit codes
Stopping on collection errors was introduced in #1628 (via #1421), but it uses
session.Interrupted
, which results in exit code 2 (and this means "interrupted by the user", handled asKeyboardInterrupt
even):Example traceback:
Should there be a distinct error code for this?
I think it makes sense, since "interactively interrupted / KeyboardError" is really something else than "errors due to imports etc".
Could exit code 3 be used for it also ("internal error")?
/cc @omarkohl
The text was updated successfully, but these errors were encountered: