Join Slack
Powered by
*Question*: Can mockk be used with Kotlin Multipla...
# mockk
h
Héctor Alpízar
08/16/2023, 4:29 AM
Question
: Can mockk be used with Kotlin Multiplatform and iosMain?
e
ephemient
08/16/2023, 6:09 AM
No.
https://github.com/mockk/mockk/issues/58
ephemient
08/16/2023, 6:12 AM
not only is kotlin-reflect missing on anything other than JVM, the closed-world compilation model means mockk wouldn't be able to instrument existing class nor generate and load new ones
ephemient
08/16/2023, 6:16 AM
https://github.com/kosi-libs/MocKMP#readme
take a different (and limited) approach
👍 1
d
Damian Baczyński
08/16/2023, 8:38 AM
You can also take a look at
https://github.com/lupuuss/Mokkery
.
👍 1
46
Views
Open in Slack
Previous
Next