stop pytest tests if several tests have a specific exception

前端 未结 0 1143
没有蜡笔的小新
没有蜡笔的小新 2021-02-04 18:34

I want to stop the tests suite using pytest.exit() if any of the tests fails with a specific exception.

For example: 50 tests, any of them can fail at some p

相关标签:
回答
  • 消灭零回复
提交回复
热议问题