Skip to content

Commit

Permalink
Include library source set in examples coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
Thijsiez committed Nov 17, 2023
1 parent e2c0ad8 commit d641292
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
15 changes: 0 additions & 15 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
plugins {
kotlin("jvm")
jacoco
`jvm-test-suite`
`jacoco-report-aggregation`
id("org.sonarqube")
}

Expand Down Expand Up @@ -66,19 +64,6 @@ configure(subprojects) {
}
}

tasks.testCodeCoverageReport {
dependsOn(project(":library").tasks.jacocoTestReport)
dependsOn(project(":examples").tasks.jacocoTestReport)
finalizedBy(tasks.jacocoTestCoverageVerification)

reports {
xml.required = true
}
}
tasks.test {
finalizedBy(tasks.testCodeCoverageReport)
}

project.afterEvaluate {
getTasksByName("quarkusGenerateCode", true).forEach { task ->
task.setDependsOn(task.dependsOn.filterIsInstance<Provider<Task>>()
Expand Down
4 changes: 4 additions & 0 deletions examples/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,7 @@ allOpen {
ksp {
arg("addGeneratedAnnotation", "true")
}

tasks.jacocoTestReport {
sourceSets(project(":library").sourceSets.getByName("main"))
}

0 comments on commit d641292

Please sign in to comment.