mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-14 12:10:30 +00:00
Fix coverage not being generated for in-game tests
This commit is contained in:
parent
afd6adbffa
commit
d8319bb35c
@ -363,7 +363,7 @@ task setupServer(type: Copy) {
|
|||||||
into "test-files/server"
|
into "test-files/server"
|
||||||
}
|
}
|
||||||
|
|
||||||
["Client", "Server"].forEach {name ->
|
["Client", "Server"].forEach { name ->
|
||||||
tasks.register("test$name", JavaExec.class).configure {
|
tasks.register("test$name", JavaExec.class).configure {
|
||||||
it.group('In-game tests')
|
it.group('In-game tests')
|
||||||
it.description("Runs tests on a temporary Minecraft instance.")
|
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.executionData(new File(buildDir, "jacoco/test${name}.exec"))
|
||||||
it.sourceDirectories.from(sourceSets.main.allJava.srcDirs)
|
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 {
|
it.reports {
|
||||||
xml.enabled true
|
xml.enabled true
|
||||||
|
Loading…
Reference in New Issue
Block a user