You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: build.gradle
+40Lines changed: 40 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -94,6 +94,26 @@ minecraft {
94
94
}
95
95
}
96
96
}
97
+
98
+
unitTests {
99
+
parent runs.server // This run config inherits settings from the server config
100
+
workingDirectory project.file('run/test')
101
+
main 'com.alcatrazescapee.mcjunitlib.DedicatedTestServerLauncher'// The main class which launches a customized server which then runs JUnit tests
102
+
ideaModule "${project.name}.test"// Tell IDEA to use the classpath of the test module
103
+
property 'forge.logging.console.level', 'unittest'// This logging level prevents any other server information messages and leaves only the unit test output
0 commit comments