提交 f65b3a03 编写于 作者: K kohsuke

supported the surefire property of ignoring test errors.

This is useful to let Hudson mark test failures as unstable.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@16579 71c3de6d-444a-0410-be80-ed276b4c234a
上级 1419cef3
......@@ -75,7 +75,7 @@ public class Cobertura {
}
def makeBuildFailIfTestFail() {
if(ant.project.getProperty("failed")!=null)
if(ant.project.getProperty("failed")!=null && !Boolean.getBoolean("testFailureIgnore"))
throw new Exception("Some unit tests failed");
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册