Skip to content

Commit 38aee49

Browse files
committed
Swap CI block instead of parenting
1 parent e20f621 commit 38aee49

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

build.gradle

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,24 @@ minecraft {
156156
}
157157

158158
unitTestsCI {
159-
parent runs.unitTests
159+
parent runs.server
160+
161+
workingDirectory project.file('run/test')
162+
main 'com.alcatrazescapee.mcjunitlib.DedicatedTestServerLauncher' // The main class which launches a customized server which then runs JUnit tests
163+
ideaModule "${project.name}.test"
164+
property 'forge.logging.console.level', 'unittest'
165+
environment 'MOD_MODULES', String.join(File.pathSeparator, "${mod_id}%%${project.name}.test")
166+
environment 'target', 'fmltestserver'
167+
environment 'targetModId', "${mod_id}"
160168
arg '--crashOnFailedTests'
169+
forceExit = false
170+
mods {
171+
compactcrafting {
172+
source sourceSets.main
173+
source sourceSets.api
174+
source sourceSets.test
175+
}
176+
}
161177
}
162178
}
163179
}

0 commit comments

Comments
 (0)