Skip to content
Permalink
Browse files

Merge pull request #6 from bartensud/master

Fix for issue JENKINS-18642 (Job build is marked as failed if NUnit test result contains only ignored tests)
  • Loading branch information
kinow committed Jul 24, 2014
2 parents c97be8f + 84fa152 commit b4dce994b29118b093c32edd92e0d3efe1fe5a7c
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 b4dce99

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