Skip to content

Commit

Permalink
Merge pull request #6 from bartensud/master
Browse files Browse the repository at this point in the history
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 b4dce99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/hudson/plugins/nunit/NUnitPublisher.java
Expand Up @@ -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) {
Expand Down

0 comments on commit b4dce99

Please sign in to comment.