aboutsummaryrefslogtreecommitdiffstats
path: root/build.gradle
diff options
context:
space:
mode:
authorTibor Blenessy <tibor.blenessy@sonarsource.com>2019-05-13 11:25:19 +0200
committerSonarTech <sonartech@sonarsource.com>2019-05-13 20:21:17 +0200
commit1fd715525d4e4de351f32df2625e72ab2a9a22d5 (patch)
tree58d49c3774ce642628d188a816a1ab69eff68578 /build.gradle
parente6a4c4b798b3ee46bf618e45c259ab4065ce59f5 (diff)
downloadsonarqube-1fd715525d4e4de351f32df2625e72ab2a9a22d5.tar.gz
sonarqube-1fd715525d4e4de351f32df2625e72ab2a9a22d5.zip
Use JaCoCo xml report for coverage (see MMF-1651) (#1526)
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle10
1 files changed, 10 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
index 66515b5e0fe..b2192f7ae44 100644
--- a/build.gradle
+++ b/build.gradle
@@ -266,6 +266,13 @@ subprojects {
// when needed (see protobuf modules for example)
}
+ jacocoTestReport {
+ reports {
+ xml.enabled true
+ csv.enabled false
+ html.enabled false
+ }
+ }
test {
jvmArgs '-Dfile.encoding=UTF8'
@@ -279,6 +286,9 @@ subprojects {
enabled = project.hasProperty('jacocoEnabled')
includes = ['com.sonar.*', 'com.sonarsource.*', 'org.sonar.*', 'org.sonarqube.*', 'org.sonarsource.*', 'io.sonarcloud.*']
}
+ if (project.hasProperty('jacocoEnabled')) {
+ finalizedBy 'jacocoTestReport'
+ }
if (project.hasProperty('maxParallelTests')) {
maxParallelForks = project.maxParallelTests as int
}