Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在特定情况下,我不希望我的鼻子测试报告错误并继续进行其他测试,我希望它彻底失败并显示堆栈跟踪(就像任何其他未捕获的异常一样)。我可以提出一个(可能是特定于鼻子的)异常类型来做到这一点吗?
您可以使用参数调用鼻子测试-x。
-x
-x, --stop Stop running tests after the first error or failure