Tag: nunit

是什么让testunit或其他nunit样式框架成为一个好的失败消息?

在Ruby的测试/单元和其他类似的nunit样式框架中,什么是一个好的失败消息? 失败消息是否仅描述预期值与预期值的匹配程度如何? assert_match(“hey”, “hey this is a test”, “The word does not exist in the string”) 它应该描述你预期会发生什么吗? assert_match(“hey”, “hey this is a test”, “I expected hey to be in the string”) 它应该描述为什么你希望这种行为发生吗? assert_match(“hey”, “hey this is a test”, “Program should provide a greeting”) 它应该描述您认为测试可能失败的原因吗? assert_match(“konnichiwa”, “konnichiwa this is a test”, “Program failed to use supplied […]

失败后继续耙

我正在运行rake来自动化我在CCNet内部的构建过程。 我用它来启动IIS Express,然后运行Nunit,然后在Nunit完成后关闭服务器。 问题是每次Nunit失败,耙子停止,永远不会到达关闭部分。 在Nunit失败后如何继续使用rake,并且仍然告诉CCNet Nunit失败了,构建也是如此?