alexfacciorusso
01/25/2019, 11:12 AMbuild
? In particular, we are using MockK for mocking, that hasn’t got native support, so we’d like only the jvm/android tests to be executed when the build
task is called on GradlelinkTestDebugExecutableIOS.enabled = false
at the end of the build.gradle
multiplatform file, but I’m pretty sure there’s a proper way of doing thateinar
01/25/2019, 1:39 PMcommon
gradle file? I just get Could not get unknown property 'linkTestDebugExecutableIOS' for project ':common' of type org.gradle.api.Project.
tasks.whenTaskAdded {task ->
if(task.name.contains("linkTestDebugExecutableIos")) {
task.enabled = false
}
}
but that has no effect sadlyrusshwolf
01/25/2019, 2:48 PMexpect annotation class
and have it typealias to @Ignore
on iOS and no-op elsewhere. Or do the inverse and typalias a new annotation to @Test
on everywhere but iOS. I've been toying with putting out a library that does this for different platforms, if it seems useful.alexfacciorusso
01/25/2019, 2:54 PMlinkTestDebugExecutableIOS.enabled = false // temporary fix for ios tests failing due to mockk
at the end of the gradle common file.
Just wanted to notice I'm still using the old
final def iOSTarget = System.getenv('SDK_NAME')?.startsWith("iphoneos") \
? presets.iosArm64 : presets.iosX64
fromPreset(iOSTarget, 'iOS') {
compilations.main.outputKinds('FRAMEWORK')
}
for setting up the ios preseteinar
01/25/2019, 9:38 PMrusshwolf
01/25/2019, 9:49 PM@OptionalExpectation
expect annotation class IosIgnore
in your common source, and then
actual typalias IosIgnore = kotlin.test.Ignore
in your ios source. Then any test function in common that you annotate with @IosIgnore
will be ignored on ios but still run on all other platforms.