Albacore 发行说明说xunit 任务支持一个skip_test_fail
参数
“防止 rake 在 xunit 测试失败时中止构建。这在持续集成场景中很有用,例如与 TeamCity 一起运行。”
没有显示示例,我尝试使用它(如下)没有成功。它应该如何工作?
desc "XUnit Test Runner Example"
xunit :xunit do |xunit|
xunit.command = "../xunit-1.8/xunit.console.clr4.exe"
xunit.assembly = "Islambox.Web.Test/bin/Debug/Islambox.Web.Test.dll"
xunit.skip_test_fail
end