mirror of
https://github.com/melihaksoy/Android-Kotlin-Modulerized-CleanArchitecture.git
synced 2026-01-14 21:23:45 +01:00
* Abstraction layer backup * Removed DataEntity, was unnecessary for now * Separated network, persistence, entities and interaction, closes #29 * Renamed binding * Removed build files, example tests Removed build files, example tests * Fixed build files were not being ignored all around app * Updated CI ymls * Small changes * Fixed legacy repository package names * Fixed CQ findings * Updated Fastlane * Packaging changes and version upgrades * Removed core from interactors * Version bumps * Added new module graph
53 lines
1.4 KiB
Groovy
53 lines
1.4 KiB
Groovy
apply plugin: 'jacoco'
|
|
|
|
jacoco {
|
|
toolVersion = "0.8.1"
|
|
reportsDir = file("$rootProject.projectDir/reports/jacoco/$project.name")
|
|
}
|
|
|
|
task jacocoTestReport(type: JacocoReport, dependsOn: "testDebugUnitTest") {
|
|
group = "Reporting"
|
|
description = "Generate Jacoco coverage reports for Debug build"
|
|
|
|
reports {
|
|
xml.enabled = true
|
|
html.enabled = true
|
|
}
|
|
|
|
// what to exclude from coverage report
|
|
// UI, "noise", generated classes, platform classes, etc.
|
|
def excludes = [
|
|
'**/R.class',
|
|
'**/R$*.class',
|
|
'**/*$ViewInjector*.*',
|
|
'**/BuildConfig.*',
|
|
'**/Manifest*.*',
|
|
'**/*Test*.*',
|
|
'android/**/*.*',
|
|
'**/*Fragment.*',
|
|
'**/*Activity.*'
|
|
]
|
|
|
|
// generated classes
|
|
getClassDirectories().setFrom(
|
|
fileTree(
|
|
dir: "$buildDir/intermediates/classes/debug",
|
|
excludes: excludes
|
|
) + fileTree(
|
|
dir: "$buildDir/tmp/kotlin-classes/debug",
|
|
excludes: excludes
|
|
)
|
|
)
|
|
|
|
// sources
|
|
getSourceDirectories().setFrom(
|
|
files([
|
|
android.sourceSets.main.java.srcDirs,
|
|
"src/main/kotlin"
|
|
])
|
|
)
|
|
|
|
getExecutionData().setFrom(
|
|
files("$buildDir/jacoco/testDebugUnitTest.exec")
|
|
)
|
|
} |