Skip to content

Commit

Permalink
ninja: fix testNative run
Browse files Browse the repository at this point in the history
  • Loading branch information
agilelab-tmnd1991 committed Nov 3, 2023
1 parent aa97221 commit 30b167c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ tasks.check {

tasks.jacocoTestReport {
dependsOn(tasks.test, integrationTest) // tests are required to run before generating the report
executionData(fileTree(layout.buildDirectory).include("/jacoco/*.exec"))
executionData(fileTree(layout.buildDirectory).include("/jacoco/*.exec").exclude("/jacoco/testNative.exec"))
doFirst {
logger.lifecycle("Excluding generated classes: ${classesToExclude}")
}
Expand All @@ -175,7 +175,7 @@ val classesToExclude = listOf(
)

tasks.jacocoTestCoverageVerification {
executionData(fileTree(layout.buildDirectory).include("/jacoco/*.exec"))
executionData(fileTree(layout.buildDirectory).include("/jacoco/*.exec").exclude("/jacoco/testNative.exec"))
classDirectories.setFrom(
files(classDirectories.files.map { fileTree(it) { exclude(classesToExclude) } })
)
Expand Down

0 comments on commit 30b167c

Please sign in to comment.