摘要
-
pytest运行后出现的状态码
-
pytest运行方式
-
pytest操作手册:点击跳转
pytest 运行中出现的6中状态码
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
文档地址
Stopping after the first (or N) failures
pytest -x
# stop after first fa