saket
04/18/2020, 10:55 PMtask checkiOS {
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', '--standalone', device, binary.absolutePath
}
}
}
tasks.check.dependsOn checkiOS
Dominaezzz
04/18/2020, 11:02 PM./gradlew macosX64Test
by default. Might be different if you've renamed your target.saket
04/18/2020, 11:04 PMmacosX64Test
is enough. I was overthinking this. Thanks @Dominaezzz!Dominaezzz
04/18/2020, 11:06 PMsaket
04/18/2020, 11:07 PMrusshwolf
04/18/2020, 11:56 PMiosTest
for a simulator target named “ios”.saket
04/19/2020, 12:00 AMiosTest
task to something else without giving any thought.