File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments