aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine/src/main/java/org
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2018-11-28 10:52:36 +0100
committersonartech <sonartech@sonarsource.com>2019-01-16 09:43:03 +0100
commit38abb93944c9e0887bed470595882ef1822e4b2c (patch)
tree512450e30eae929dd4fee7e3213af60f45ca3906 /sonar-scanner-engine/src/main/java/org
parentdc12e96975f798ba02f90f345fc81b8e7aeffa3c (diff)
downloadsonarqube-38abb93944c9e0887bed470595882ef1822e4b2c.tar.gz
sonarqube-38abb93944c9e0887bed470595882ef1822e4b2c.zip
SONAR-11530 Change Generic coverage/test reports sensors to be project level Sensors
Diffstat (limited to 'sonar-scanner-engine/src/main/java/org')
-rw-r--r--sonar-scanner-engine/src/main/java/org/sonar/scanner/genericcoverage/GenericCoverageSensor.java1
-rw-r--r--sonar-scanner-engine/src/main/java/org/sonar/scanner/genericcoverage/GenericTestExecutionSensor.java1
2 files changed, 2 insertions, 0 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/genericcoverage/GenericCoverageSensor.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/genericcoverage/GenericCoverageSensor.java
index 988ae12054b..e11b403b0b6 100644
--- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/genericcoverage/GenericCoverageSensor.java
+++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/genericcoverage/GenericCoverageSensor.java
@@ -100,6 +100,7 @@ public class GenericCoverageSensor implements Sensor {
@Override
public void describe(SensorDescriptor descriptor) {
descriptor.name("Generic Coverage Report")
+ .global()
.onlyWhenConfiguration(c -> asList(REPORT_PATHS_PROPERTY_KEY, OLD_REPORT_PATH_PROPERTY_KEY, OLD_COVERAGE_REPORT_PATHS_PROPERTY_KEY,
OLD_IT_COVERAGE_REPORT_PATHS_PROPERTY_KEY, OLD_OVERALL_COVERAGE_REPORT_PATHS_PROPERTY_KEY)
.stream()
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/genericcoverage/GenericTestExecutionSensor.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/genericcoverage/GenericTestExecutionSensor.java
index d693836d820..1cad4d799d3 100644
--- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/genericcoverage/GenericTestExecutionSensor.java
+++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/genericcoverage/GenericTestExecutionSensor.java
@@ -69,6 +69,7 @@ public class GenericTestExecutionSensor implements Sensor {
@Override
public void describe(SensorDescriptor descriptor) {
descriptor.name("Generic Test Executions Report")
+ .global()
.onlyWhenConfiguration(conf -> conf.hasKey(REPORT_PATHS_PROPERTY_KEY));
}