Skip to content

Commit

Permalink
Use JaCoCo xml report for coverage (see MMF-1651) (SonarSource#1526)
Browse files Browse the repository at this point in the history
  • Loading branch information
saberduck authored and SonarTech committed May 13, 2019
1 parent e6a4c4b commit 1fd7155
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
}
Expand Down

0 comments on commit 1fd7155

Please sign in to comment.