Why does the exitstatus parameter in the pytest_terminal_summary hook function return the number 0 when the test passes and an enumerated value in other cases? #12088
Unanswered
backtracker
asked this question in
Q&A
Replies: 1 comment
-
Programm return codes indicate errors in general 0 means no error |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
#: Tests passed.
OK = 0
#: Tests failed.
TESTS_FAILED = 1
#: pytest was interrupted.
INTERRUPTED = 2
#: An internal error got in the way.
INTERNAL_ERROR = 3
#: pytest was misused.
USAGE_ERROR = 4
#: pytest couldn't find tests.
NO_TESTS_COLLECTED = 5
Beta Was this translation helpful? Give feedback.
All reactions