Skip to content

Commit

Permalink
build: replace jacoco with cobertura
Browse files Browse the repository at this point in the history
currently jacoco does not provide proper coverage data so we switch to cobertura
  • Loading branch information
thetric committed Apr 5, 2017
1 parent fe3b061 commit 1db19e0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'net.saliman:gradle-cobertura-plugin:2.4.0'
}
}

subprojects {
Expand All @@ -28,6 +31,8 @@ subprojects {

// test
testCompile 'org.spockframework:spock-core:1.1-groovy-2.4-rc-4'
testCompile 'net.bytebuddy:byte-buddy:1.6.12'
testRuntime 'org.slf4j:slf4j-api:1.7.25'
}

apply from: rootProject.file('config/gradle/coverage.gradle')
Expand Down
16 changes: 3 additions & 13 deletions config/gradle/coverage.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
apply plugin: 'jacoco'
apply plugin: 'net.saliman.cobertura'

jacoco {
toolVersion = '0.7.9'
cobertura {
coverageExcludes = ['.*\\$.*']
}

jacocoTestReport {
reports {
xml.enabled = false
csv.enabled = false
html.enabled = true
}
}

check.dependsOn jacocoTestReport

0 comments on commit 1db19e0

Please sign in to comment.