Skip to content
Permalink
Browse files

Fix for issue JENKINS-18642 (Job build is marked as failed if NUnit test

result contains only ignored tests)
  • Loading branch information
bartensud committed Jul 6, 2013
1 parent 86b495e commit 84fa15267a1914c097fbe7975a816f23bf15ab8d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/hudson/plugins/nunit/NUnitPublisher.java
@@ -166,7 +166,7 @@ private boolean recordTestResult(String junitFilePattern, AbstractBuild<?, ?> bu
action = existingAction;
action.setResult(result, listener);
}
if(result.getPassCount()==0 && result.getFailCount()==0){
if(result.getPassCount()==0 && result.getFailCount()==0 && result.getSkipCount()==0){
throw new AbortException("None of the test reports contained any result");
}
} catch (AbortException e) {

0 comments on commit 84fa152

Please sign in to comment.
You can’t perform that action at this time.