1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-12-14 04:00:30 +00:00

Fix coverage not being generated for in-game tests

This commit is contained in:
Jonathan Coates 2021-08-20 22:13:21 +01:00
parent afd6adbffa
commit d8319bb35c
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06

View File

@ -363,7 +363,7 @@ task setupServer(type: Copy) {
into "test-files/server"
}
["Client", "Server"].forEach {name ->
["Client", "Server"].forEach { name ->
tasks.register("test$name", JavaExec.class).configure {
it.group('In-game tests')
it.description("Runs tests on a temporary Minecraft instance.")
@ -400,7 +400,7 @@ task setupServer(type: Copy) {
it.executionData(new File(buildDir, "jacoco/test${name}.exec"))
it.sourceDirectories.from(sourceSets.main.allJava.srcDirs)
it.classDirectories.from(new File(buildDir, "jacocoClassDump/$name"))
it.classDirectories.from(new File(buildDir, "jacocoClassDump/test$name"))
it.reports {
xml.enabled true