nunit-console
似乎像这样工作(参数/nologo /wait /labels ...
:)
当测试开始时,它只输出每个测试的标签,如下所示:
***** Our.Tests.Bla
... here come some Console.WriteLine
// Note that in case Our.Tests.Bla fails, nothing is reported here immediately
***** Our.Tests.Blub
... here come some Console.WriteLine
***** Our.Tests.Foo
... here come some Console.WriteLine
如果任何测试失败,它仅在完整运行结束时报告测试失败。
通常这很好,但我们也通过 NUnit 运行一些相互依赖的集成测试,有时一个测试会因为之前的测试失败而挂起。
问题是,当一个测试挂起时,您看不到哪个/如果有任何先前的测试失败,这使得快速追踪问题变得非常困难。(特别是当测试挂在测试服务器机器上时,或者您可能只有一个中止运行的日志。)
我真的希望NUnit 在开始下一个测试之前即时/立即报告失败的测试,包括详细的错误。这可能吗?