Does anyone have advice for ignoring common tests ...
# multiplatform
m
Does anyone have advice for ignoring common tests on a specific platform (native) while continuing to run them on other platforms (jvm)? I tried creating a custom annotation class and typealiasing to
kotlin.test.Ignore
only on native (following guide here), but this strategy fails at runtime with unresolved symbol errors...
Fixed it! I was missing a constructor... before:
Copy code
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
public expect annotation class IgnoreNative
after:
Copy code
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
public expect annotation class IgnoreNative()
r
Nice! I actually encountered this as well.
👍 1