Skip to content

Commit

Permalink
Add test sourceSet to test runs
Browse files Browse the repository at this point in the history
  • Loading branch information
LLytho committed Aug 9, 2024
1 parent d6523eb commit 9f02058
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,15 @@ neoForge {
runs {
val exampleScripts = project.rootDir.resolve("example_scripts").toString()
create("gametest") {
server();
server()
sourceSet.set(sourceSets.test.get())
systemProperty("neoforge.gameTestServer", "true")
systemProperty("neoforge.enabledGameTestNamespaces", modId)
systemProperty("$modId.example_scripts", exampleScripts)
}
create("testmod") {
client();
client()
sourceSet.set(sourceSets.test.get())
systemProperty("neoforge.gameTestServer", "true")
systemProperty("neoforge.enabledGameTestNamespaces", modId)
systemProperty("$modId.example_scripts", exampleScripts)
Expand Down

0 comments on commit 9f02058

Please sign in to comment.