mirror of
https://github.com/wulkanowy/wulkanowy.git
synced 2024-11-27 13:03:33 -06:00
37 lines
1.1 KiB
Groovy
37 lines
1.1 KiB
Groovy
|
apply plugin: "jacoco"
|
||
|
|
||
|
jacoco {
|
||
|
toolVersion "0.7.4.201502262128"
|
||
|
}
|
||
|
|
||
|
// run ./gradlew clean createDebugCoverageReport jacocoTestReport
|
||
|
task jacocoTestReport(type: JacocoReport) {
|
||
|
|
||
|
group = "Reporting"
|
||
|
description = "Generate Jacoco coverage reports"
|
||
|
|
||
|
reports {
|
||
|
xml.enabled = true
|
||
|
html.enabled = true
|
||
|
}
|
||
|
|
||
|
def fileFilter = ["**/R.class",
|
||
|
"**/R\$*.class",
|
||
|
"**/BuildConfig.*",
|
||
|
"**/Manifest*.*",
|
||
|
"android/**/*.*",
|
||
|
"**/Lambda.class",
|
||
|
"**/*Lambda.class",
|
||
|
"**/*Lambda*.class",
|
||
|
"**/*Lambda*.*",
|
||
|
"**/*Builder.*"
|
||
|
]
|
||
|
|
||
|
def debugTree = fileTree(dir: "${buildDir}/intermediates/classes/debug", excludes: fileFilter)
|
||
|
def mainSrc = "${project.projectDir}/src/main/java"
|
||
|
|
||
|
sourceDirectories = files([mainSrc])
|
||
|
classDirectories = files([debugTree])
|
||
|
executionData = fileTree(dir: project.projectDir, includes: ["**/*.exec" , "**/*.ec"])
|
||
|
}
|