From 3bd030a3bf87a2a2374162feb6bc8be5fd41ac11 Mon Sep 17 00:00:00 2001 From: m724 Date: Fri, 31 Oct 2025 12:23:35 +0100 Subject: [PATCH] test: Don't copy resources to build --- build.gradle.kts | 10 +--------- src/nativeTest/kotlin/dn42/m724/auth/TestUtils.kt | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index da2e651..13123c8 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -43,12 +43,4 @@ kotlin { implementation("io.kotest:kotest-property:6.0.4") } } -} - -tasks.register("copyNativeTestResources") { - from("src/nativeTest/resources") - into("build/bin/native/debugTest/resources") -} - -tasks.findByName("nativeTest")!! - .dependsOn("copyNativeTestResources") \ No newline at end of file +} \ No newline at end of file diff --git a/src/nativeTest/kotlin/dn42/m724/auth/TestUtils.kt b/src/nativeTest/kotlin/dn42/m724/auth/TestUtils.kt index 544e1f5..7da645c 100644 --- a/src/nativeTest/kotlin/dn42/m724/auth/TestUtils.kt +++ b/src/nativeTest/kotlin/dn42/m724/auth/TestUtils.kt @@ -5,7 +5,7 @@ import io.kotest.matchers.shouldBe import nl.adaptivity.xmlutil.core.impl.multiplatform.FileInputStream 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