IDEA plugin: Use new test binary getter in project templates
Issue #KT-31724 fixed
This commit is contained in:
+2
-2
@@ -185,12 +185,12 @@ class KotlinGradleMobileSharedMultiplatformModuleBuilder : KotlinGradleAbstractM
|
|||||||
|
|
||||||
task $nativeTestName {
|
task $nativeTestName {
|
||||||
def device = project.findProperty("${nativeTargetName}Device")?.toString() ?: "iPhone 8"
|
def device = project.findProperty("${nativeTargetName}Device")?.toString() ?: "iPhone 8"
|
||||||
dependsOn kotlin.targets.$nativeTargetName.binaries.getExecutable('test', 'DEBUG').linkTaskName
|
dependsOn kotlin.targets.$nativeTargetName.binaries.getTest('DEBUG').linkTaskName
|
||||||
group = JavaBasePlugin.VERIFICATION_GROUP
|
group = JavaBasePlugin.VERIFICATION_GROUP
|
||||||
description = "Runs tests for target '$nativeTargetName' on an iOS simulator"
|
description = "Runs tests for target '$nativeTargetName' on an iOS simulator"
|
||||||
|
|
||||||
doLast {
|
doLast {
|
||||||
def binary = kotlin.targets.$nativeTargetName.binaries.getExecutable('test', 'DEBUG').outputFile
|
def binary = kotlin.targets.$nativeTargetName.binaries.getTest('DEBUG').outputFile
|
||||||
exec {
|
exec {
|
||||||
commandLine 'xcrun', 'simctl', 'spawn', device, binary.absolutePath
|
commandLine 'xcrun', 'simctl', 'spawn', device, binary.absolutePath
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user