How can i run common module tests on native target...
# kotlin-native
b
How can i run common module tests on native target?
s
I use the following task for iOS. Other native environments will likely be different.
Copy code
task iosTest {
    def device = project.findProperty("iosDevice")?.toString() ?: "iPhone 8"
    dependsOn 'linkDebugTestIos'
    group = JavaBasePlugin.VERIFICATION_GROUP
    description = "Runs tests for target 'ios' on an iOS simulator"

    doLast {
        def binary = kotlin.targets.ios.binaries.getTest("DEBUG").outputFile
        exec {
            commandLine 'xcrun', 'simctl', 'spawn', device, binary.absolutePath
        }
    }
}
b
Interesting. I'm looking for a solution to run tests on WASM