test: Don't copy resources to build

This commit is contained in:
m724 2025-10-31 12:23:35 +01:00
commit 3bd030a3bf
Signed by untrusted user who does not match committer: m724
GPG key ID: A02E6E67AB961189
2 changed files with 2 additions and 10 deletions

View file

@ -43,12 +43,4 @@ kotlin {
implementation("io.kotest:kotest-property:6.0.4") implementation("io.kotest:kotest-property:6.0.4")
} }
} }
} }
tasks.register<Copy>("copyNativeTestResources") {
from("src/nativeTest/resources")
into("build/bin/native/debugTest/resources")
}
tasks.findByName("nativeTest")!!
.dependsOn("copyNativeTestResources")

View file

@ -5,7 +5,7 @@ import io.kotest.matchers.shouldBe
import nl.adaptivity.xmlutil.core.impl.multiplatform.FileInputStream import nl.adaptivity.xmlutil.core.impl.multiplatform.FileInputStream
import nl.adaptivity.xmlutil.core.impl.multiplatform.use import nl.adaptivity.xmlutil.core.impl.multiplatform.use
private const val RESOURCES_PATH_PREFIX = "build/bin/native/debugTest/resources/" // ...awe TODO don't private const val RESOURCES_PATH_PREFIX = "src/nativeTest/resources/" // TODO don't
fun getResourcePath(resource: String): String = RESOURCES_PATH_PREFIX + resource fun getResourcePath(resource: String): String = RESOURCES_PATH_PREFIX + resource