Skip to content

Commit cc841ee

Browse files
committed
jakarta: Include tests in jacoco report
This was already being done for servlet, so it was just copied to jakarta.
1 parent 7561d0b commit cc841ee

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

servlet/jakarta/build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,11 @@ if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_17)) {
122122
tasks.named("check").configure {
123123
dependsOn jetty11Test
124124
}
125+
tasks.named("jacocoTestReport").configure {
126+
// Must use executionData(Task...) override. The executionData(Object...) override doesn't
127+
// find execution data correctly for tasks.
128+
executionData jetty11Test.get()
129+
}
125130
}
126131
if (JavaVersion.current().isJava11Compatible()) {
127132
def tomcat10Test = tasks.register('tomcat10Test', Test) {
@@ -150,4 +155,9 @@ if (JavaVersion.current().isJava11Compatible()) {
150155
tasks.named("check").configure {
151156
dependsOn tomcat10Test, undertowTest
152157
}
158+
tasks.named("jacocoTestReport").configure {
159+
// Must use executionData(Task...) override. The executionData(Object...) override doesn't
160+
// find execution data correctly for tasks.
161+
executionData tomcat10Test.get(), undertowTest.get()
162+
}
153163
}

0 commit comments

Comments
 (0)