Skip to content

Commit 1e23c72

Browse files
committed
Fix game test coverage not being reported
1 parent 4671ce0 commit 1e23c72

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

buildSrc/src/main/groovy/multiloader-loader-neoforge.gradle

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,9 @@ neoForge {
9696
//}
9797

9898
// Measure coverage for game tests
99-
tasks.whenTaskAdded { task ->
100-
if (task.name.equals('runGameTestServer')) {
101-
jacocoTestReport.dependsOn test, task
102-
jacoco.applyTo(task)
103-
}
104-
}
10599
jacocoTestReport {
106100
// Include unit and game test coverage
101+
dependsOn test, runGameTestServer
107102
executionData fileTree(project.buildDir).include("jacoco/*.exec")
108103
}
104+
jacoco.applyTo(runGameTestServer)

0 commit comments

Comments
 (0)