]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-12902 Reword unsufficient coverage issue description
authorDuarte Meneses <duarte.meneses@sonarsource.com>
Tue, 9 Feb 2021 16:17:27 +0000 (10:17 -0600)
committersonartech <sonartech@sonarsource.com>
Wed, 10 Feb 2021 20:07:17 +0000 (20:07 +0000)
server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/issue/commonrule/BranchCoverageRule.java
server/sonar-ce-task-projectanalysis/src/test/java/org/sonar/ce/task/projectanalysis/issue/commonrule/BranchCoverageRuleTest.java

index e9bcbe6f22f6ca0913da2336dc21725681942c07..af567bac3ee29a2be6e0cdaaa2e3bd25cd5d3ae6 100644 (file)
@@ -40,6 +40,6 @@ public class BranchCoverageRule extends AbstractCoverageRule {
   @Override
   protected String formatMessage(int effortToFix, double minCoverage) {
     // FIXME declare min threshold as int but not float ?
-    return format("%d more branches need to be covered by tests to reach the minimum threshold of %s%% branch coverage.", effortToFix, minCoverage);
+    return format("%d more conditions need to be covered by tests to reach the minimum threshold of %s%% condition coverage.", effortToFix, minCoverage);
   }
 }
index 7a6d5f52064f353172b5004015e69d390318138a..619821ce490e0ddb536b06f676fcc0b489dad869 100644 (file)
@@ -57,6 +57,6 @@ public class BranchCoverageRuleTest extends CoverageRuleTest {
 
   @Override
   protected String getExpectedIssueMessage() {
-    return "23 more branches need to be covered by tests to reach the minimum threshold of 65.0% branch coverage.";
+    return "23 more conditions need to be covered by tests to reach the minimum threshold of 65.0% condition coverage.";
   }
 }