aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2016-10-27 09:48:01 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2016-10-27 10:32:00 +0200
commit263d54549782fc443c66cf2c483851906bcdb1fb (patch)
tree2961b6cb13383ce001eeea05ff96d0f59dfc1391
parent78d6bb26f386afcb2babc3c40f24e8e63d5229b8 (diff)
downloadsonarqube-263d54549782fc443c66cf2c483851906bcdb1fb.tar.gz
sonarqube-263d54549782fc443c66cf2c483851906bcdb1fb.zip
SONAR-8286 Fix issue message on coverage common rules
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/issue/commonrule/BranchCoverageRule.java2
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/issue/commonrule/LineCoverageRule.java2
-rw-r--r--server/sonar-server/src/test/java/org/sonar/server/computation/task/projectanalysis/issue/commonrule/BranchCoverageRuleTest.java2
-rw-r--r--server/sonar-server/src/test/java/org/sonar/server/computation/task/projectanalysis/issue/commonrule/LineCoverageRuleTest.java2
4 files changed, 4 insertions, 4 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/issue/commonrule/BranchCoverageRule.java b/server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/issue/commonrule/BranchCoverageRule.java
index d38e6b2ad18..ad93a479092 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/issue/commonrule/BranchCoverageRule.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/issue/commonrule/BranchCoverageRule.java
@@ -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 unit tests to reach the minimum threshold of %s%% branch coverage.", effortToFix, minCoverage);
+ return format("%d more branches need to be covered by tests to reach the minimum threshold of %s%% branch coverage.", effortToFix, minCoverage);
}
}
diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/issue/commonrule/LineCoverageRule.java b/server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/issue/commonrule/LineCoverageRule.java
index ceffc029b51..45e943f6b34 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/issue/commonrule/LineCoverageRule.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/issue/commonrule/LineCoverageRule.java
@@ -40,6 +40,6 @@ public class LineCoverageRule extends AbstractCoverageRule {
@Override
protected String formatMessage(int effortToFix, double minCoverage) {
// TODO declare min threshold as int but not float ?
- return format("%d more lines of code need to be covered by unit tests to reach the minimum threshold of %s%% lines coverage.", effortToFix, minCoverage);
+ return format("%d more lines of code need to be covered by tests to reach the minimum threshold of %s%% lines coverage.", effortToFix, minCoverage);
}
}
diff --git a/server/sonar-server/src/test/java/org/sonar/server/computation/task/projectanalysis/issue/commonrule/BranchCoverageRuleTest.java b/server/sonar-server/src/test/java/org/sonar/server/computation/task/projectanalysis/issue/commonrule/BranchCoverageRuleTest.java
index 61916a3824c..19a56a215b0 100644
--- a/server/sonar-server/src/test/java/org/sonar/server/computation/task/projectanalysis/issue/commonrule/BranchCoverageRuleTest.java
+++ b/server/sonar-server/src/test/java/org/sonar/server/computation/task/projectanalysis/issue/commonrule/BranchCoverageRuleTest.java
@@ -57,6 +57,6 @@ public class BranchCoverageRuleTest extends CoverageRuleTest {
@Override
protected String getExpectedIssueMessage() {
- return "23 more branches need to be covered by unit tests to reach the minimum threshold of 65.0% branch coverage.";
+ return "23 more branches need to be covered by tests to reach the minimum threshold of 65.0% branch coverage.";
}
}
diff --git a/server/sonar-server/src/test/java/org/sonar/server/computation/task/projectanalysis/issue/commonrule/LineCoverageRuleTest.java b/server/sonar-server/src/test/java/org/sonar/server/computation/task/projectanalysis/issue/commonrule/LineCoverageRuleTest.java
index 449de2e47a1..086ba893c98 100644
--- a/server/sonar-server/src/test/java/org/sonar/server/computation/task/projectanalysis/issue/commonrule/LineCoverageRuleTest.java
+++ b/server/sonar-server/src/test/java/org/sonar/server/computation/task/projectanalysis/issue/commonrule/LineCoverageRuleTest.java
@@ -57,6 +57,6 @@ public class LineCoverageRuleTest extends CoverageRuleTest {
@Override
protected String getExpectedIssueMessage() {
- return "23 more lines of code need to be covered by unit tests to reach the minimum threshold of 65.0% lines coverage.";
+ return "23 more lines of code need to be covered by tests to reach the minimum threshold of 65.0% lines coverage.";
}
}