pytest exit codes in CI
QuizMediumPython onlyAsked in: Capgemini, Google, Salesforce, TCS, Zupee
A CI step runs pytest -m smoke and fails with exit code 5. What happened?
- No tests were collected (found to run): nothing matched the selection, for example a misspelled or missing marker
- Five tests failed
- pytest crashed internally
- The run was interrupted by the user
This question is part of Pro+
Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.