Join Slack
Powered by
Is it possible to use MockK in a KMM project? I re...
# multiplatform
h
Hossein Amini
07/03/2023, 8:47 AM
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
Adam Brown
07/03/2023, 9:20 AM
not at the moment, but I think I remember reading they were thinking about supporting it in the future
Adam Brown
07/03/2023, 9:21 AM
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
Adam S
07/03/2023, 9:32 AM
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
Sam
07/03/2023, 5:11 PM
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
Hossein Amini
07/07/2023, 4:48 AM
Thank you guys, for now I decided to use fake objects. Probably I’ll use Mockative after testing it.
a
Adam Brown
07/09/2023, 2:40 AM
man I wish Mockative could do objects
77
Views
Open in Slack
Previous
Next