Skip to content

Commit

Permalink
Update AbstractTestResultAction.java
Browse files Browse the repository at this point in the history
Resolve  JENKINS-25573 -  Junit always reporting 100% health.
https://issues.jenkins-ci.org/browse/JENKINS-25573
  • Loading branch information
marksinclair committed Nov 18, 2014
1 parent 722c23e commit c0dc11e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -159,7 +159,7 @@ public HealthReport getBuildHealth() {
final int failCount = getFailCount();
int score = (totalCount == 0)
? 100
: (int) (100.0 * Math.max(1.0, Math.min(0.0, 1.0 - (scaleFactor * failCount) / totalCount)));
: (int) (100.0 * Math.max(0.0, Math.min(0.0, 1.0 - (scaleFactor * failCount) / totalCount)));
Localizable description, displayName = Messages._AbstractTestResultAction_getDisplayName();
if (totalCount == 0) {
description = Messages._AbstractTestResultAction_zeroTestDescription(displayName);
Expand Down

0 comments on commit c0dc11e

Please sign in to comment.