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 72c11e8 commit 3f2fb86
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ base {

neoForge {
version = neoforgeVersion

addModdingDependenciesTo(sourceSets.test.get())

val mainMod = mods.create(modId) {
Expand All @@ -46,16 +45,18 @@ 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("lootjs.example_scripts", exampleScripts)
systemProperty("$modId.example_scripts", exampleScripts)
}
create("testmod") {
client();
sourceSet.set(sourceSets.test.get())
systemProperty("neoforge.gameTestServer", "true")
systemProperty("neoforge.enabledGameTestNamespaces", modId)
systemProperty("lootjs.example_scripts", exampleScripts)
systemProperty("$modId.example_scripts", exampleScripts)
}
create("client") {
client()
Expand Down

0 comments on commit 3f2fb86

Please sign in to comment.