Hello Esha, while executing a Pytest code, it can results in one of the Exit Codes. Following are the exit codes which can be resulted:
-
0: Test cases/test suites are executed successfully and end result was PASS
-
1: Test cases/test suites were executed, but some tests FAILED
-
2: Test execution was stopped by the user
-
3: Unknown error occurred when the tests were executed
-
4: Usage of pytest command is incorrect
-
5: No tests were collected