Skip to content

Commit

Permalink
Generate XML coverage reports for all projects
Browse files Browse the repository at this point in the history
  • Loading branch information
garyttierney committed Apr 18, 2024
1 parent 3fa9780 commit 659da2b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
11 changes: 10 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,17 @@ idea {
}
}


val reports = configurations.register("reports") { isCanBeDeclared = true }

koverReport {
defaults {
xml {
onCheck = true
}
}


configurations {
kover.extendsFrom(reports)
sarif.extendsFrom(reports)
Expand All @@ -41,4 +50,4 @@ val projectSarifReport by tasks.registering(ReportMergeTask::class) {

task("check") {
dependsOn(projectSarifReport)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ detekt {
ignoreFailures = true
}

koverReport {
defaults {
xml {
onCheck = true
}
}
}

tasks {
detektMain {
Expand Down

0 comments on commit 659da2b

Please sign in to comment.