在第一个错误或失败后停止

在第一个错误或失败后停止测试运行。

此插件实现 testOutcome()event.result.shouldStop 如果它看到的结果带有不期望的exc_信息。

命令行选项

-F DEFAULT, --fail-fast DEFAULT

在第一个错误或失败后停止测试运行

插件类引用:failfast

class nose2.plugins.failfast.FailFast(*args, **kwargs)[源代码]

出错或失败后停止测试运行

resultCreated(event)[源代码]

标记新结果

testOutcome(event)[源代码]

发生意外错误或故障时停止