Selaa lähdekoodia

SONAR-12902 Reword unsufficient coverage issue description

tags/8.7.0.41497
Duarte Meneses 3 vuotta sitten
vanhempi
commit
3c46dd5941

+ 1
- 1
server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/issue/commonrule/BranchCoverageRule.java Näytä tiedosto

@@ -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);
}
}

+ 1
- 1
server/sonar-ce-task-projectanalysis/src/test/java/org/sonar/ce/task/projectanalysis/issue/commonrule/BranchCoverageRuleTest.java Näytä tiedosto

@@ -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.";
}
}

Loading…
Peruuta
Tallenna