Skip to content

Commit 4cd8237

Browse files
test coverage reports
1 parent c1673c9 commit 4cd8237

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

build.gradle

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ plugins {
44
id 'eclipse'
55
id 'idea'
66
id 'maven-publish'
7+
id 'jacoco'
78
alias libs.plugins.modDevGradle
89
//alias libs.plugins.shadow
910
alias libs.plugins.spotless
@@ -98,3 +99,17 @@ tasks.withType(JavaCompile).configureEach {
9899
lombok {
99100
version = "1.18.38"
100101
}
102+
103+
jacoco {
104+
applyTo runGameTestServer
105+
}
106+
107+
tasks.register('testCoverageReport', JacocoReport) {
108+
executionData runGameTestServer
109+
sourceSets sourceSets.main
110+
reports {
111+
xml.required = false
112+
csv.required = false
113+
html.outputLocation = layout.buildDirectory.dir('coverage')
114+
}
115+
}

0 commit comments

Comments
 (0)