https://kotlinlang.org logo
a

AnaR

01/14/2022, 5:47 PM
Any recommendations for KMM libraries to use for Mocking for tests? I've found MMock from Pega Systems and Karmok from Touchlab so far, but haven't tried them yet. Please also share thoughts if you've tried either of them.
k

kpgalligan

01/14/2022, 6:01 PM
Karmok was something we tried a while ago and we don’t really use it now. It’s roughly similar to Kodein’s thing (https://github.com/Kodein-Framework/MocKMP) in that it would generate mock code for interfaces. MMock looks the same. I should archive Karmock I guess…
Archived!
a

AnaR

01/14/2022, 7:33 PM
Thank you
g

Grégory Lureau

01/14/2022, 7:39 PM
We're using MocKMP too, just adding an alternative to the list: MockingBird
👍 1
k

kpgalligan

01/14/2022, 8:53 PM
Some day somebody is going to just figure out an IR plugin implementation, but until then, all interfaces :)
m

Mustafa Ozhan

01/15/2022, 7:42 AM
🙌 1
👋 1
k

kpgalligan

01/15/2022, 5:14 PM
Anything you're not happy about? Just wondering if there's anything behind "pretty happy".
n

Nicklas Jensen

01/17/2022, 12:26 PM
I created Mockative because my team and I at Cardlay were missing a great mocking library for Kotlin Multiplatform (specifically Kotlin/Native). Feel free to reach out to me if you have any questions about it 🙂
m

Mustafa Ozhan

01/17/2022, 2:00 PM
Well I am not a unit test expert maybe someone who has more experience can give better feedback 🙂 For me It does everything about mocking, maybe one down side is, it just mocks the interfaces so far but as i say it covers my all needs 🙂 and @Nicklas Jensen is so responsive about newly created issues
4 Views