Skip to content

Commit

Permalink
test jacoco
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisChoupault committed Mar 3, 2025
1 parent 1f4cb58 commit ae81617
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ android {
unitTests.all {
useJUnitPlatform()

jacoco {
includeNoLocationClasses = true
excludes = ['jdk.internal.*']
}

testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
outputs.upToDateWhen {false}
Expand Down Expand Up @@ -93,9 +98,12 @@ tasks.register('jacocoTestReport', JacocoReport) {
'**/Event*.class',
'**/Account*.class',
] // ignore pigeon generated files
def mainSrc = "${project.projectDir}/src/main/kotlin/sncf/connect/tech/eventide/"

def debugTree = fileTree(dir: "${buildDir}/intermediates/classes/debug", excludes: fileFilter)
def mainSrc = "${project.projectDir}/src/main/java"

sourceDirectories.setFrom(files(mainSrc))
classDirectories.setFrom(files([debugTree]))
classDirectories.setFrom(files("${buildDir}/intermediates/runtime_library_classes_dir/debug/sncf/connect/tech/eventide/").asFileTree.matching {
exclude fileFilter
})
Expand Down

0 comments on commit ae81617

Please sign in to comment.