Skip to content

Commit

Permalink
Fix jacoco test report task
Browse files Browse the repository at this point in the history
  • Loading branch information
jbelkins committed Nov 21, 2024
1 parent cb98857 commit 402da3b
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions smithy-swift-codegen/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,17 @@ tasks.jar {
}

// Configure jacoco (code coverage) to generate an HTML report
// tasks.jacocoTestReport {
// reports {
// xml.isEnabled = false
// csv.isEnabled = false
// html.destination = file("$buildDir/reports/jacoco")
// }
// }
tasks.jacocoTestReport {
dependsOn(tasks.test)
reports {
xml.required.set(false)
csv.required.set(false)
html.outputLocation.set(file("$buildDir/reports/jacoco"))
}
}

// Always run the jacoco test report after testing.
tasks["test"].finalizedBy(tasks["jacocoTestReport"])
tasks["test"].finalizedBy(tasks.jacocoTestReport)

publishing {
publications {
Expand Down

0 comments on commit 402da3b

Please sign in to comment.