Skip to content

Commit

Permalink
Add jacoco code coverage framework
Browse files Browse the repository at this point in the history
  • Loading branch information
risik committed Jun 6, 2015
1 parent fb93c7a commit 44e31d9
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions build.gradle
Expand Up @@ -5,6 +5,7 @@ task wrapper(type: Wrapper) {
subprojects {

apply plugin: 'java'
apply plugin: 'jacoco'

repositories {
mavenCentral()
Expand All @@ -15,6 +16,28 @@ subprojects {
testCompile 'com.pholser:junit-quickcheck-core:0.5+'
testCompile 'com.pholser:junit-quickcheck-generators:0.5+'
}

jacoco {
toolVersion = "0.7.4.201502262128"
reportsDir = file("$buildDir/customJacocoReportDir")
}

jacocoTestReport {
reports {
xml.enabled false
csv.enabled false
html.destination "${buildDir}/jacocoHtml"
}
}

test {
jacoco {
append = false
destinationFile = file("$buildDir/jacoco/jacocoTest.exec")
classDumpFile = file("$buildDir/jacoco/classpathdumps")
}
}

}

project(':HelloWorld') {
Expand Down

0 comments on commit 44e31d9

Please sign in to comment.