Skip to content

Commit

Permalink
test: Generate coverage reports after tests
Browse files Browse the repository at this point in the history
  • Loading branch information
booniepepper committed Sep 22, 2023
1 parent f1b6199 commit 58b65af
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id 'java'

// Quality
id 'jacoco'
id 'jvm-test-suite'
id 'com.diffplug.spotless' version '6.20.0'

Expand Down Expand Up @@ -36,6 +37,16 @@ javadoc {
options.addStringOption('Xdoclint:none', '-quiet')
}

test {
// JaCoCo coverage report is always generated after tests run.
finalizedBy jacocoTestReport
}

jacocoTestReport {
// tests are required to run before generating a JaCoCo coverage report.
dependsOn test
}

ext {
jackson_version = "2.14.1"
junit_version = "5.7.1"
Expand Down

0 comments on commit 58b65af

Please sign in to comment.