Is it possible to use MockK in a KMM project? I re...
# multiplatform
h
Is it possible to use MockK in a KMM project? I remember I used it in a sample KMM project but now I cannot find its dependency for KMM
a
not at the moment, but I think I remember reading they were thinking about supporting it in the future
what I did was write my tests in a JVM source set for the common code. it's not perfect, but it works for now
a
MockK will support JVM and Android projects, but not any other Kotlin target Here’s a relevant recent thread: https://kotlinlang.slack.com/archives/C9EJFT6DB/p1684832628017179
s
I've been using Mockative https://github.com/mockative/mockative No issues with it, not as nice as Mockk but nothing is, it's solid though
h
Thank you guys, for now I decided to use fake objects. Probably I’ll use Mockative after testing it.
a
man I wish Mockative could do objects