Gab*_*iMe 51 python unit-testing
似乎如果测试用例失败,nose将尝试执行下一个测试用例.如何在任何测试用例中出现第一个错误时使鼻子中止所有执行?我尝试了sys.exit(),但它给了我一些关于它的丑陋和冗长的消息
gru*_*czy 82
鼻子有一个选择:
-x, --stop
Stop running tests after the first error or failure
Run Code Online (Sandbox Code Playgroud)
这是你需要的吗?
以下链接可以帮助您进行鼻子测试的所有选项. http://nose.readthedocs.org/en/latest/usage.html