test: Don't copy resources to build
This commit is contained in:
parent
dc8cd39dea
commit
3bd030a3bf
2 changed files with 2 additions and 10 deletions
|
|
@ -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")
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue