https://kotlinlang.org logo
#testing
Title
# testing
d

Darryl Pierce

11/27/2023, 7:55 PM
Hi, all. I"m looking for any information on using mock objects when writing tests for Kotlin multiplatform apps. Any recommendations would be appreciated.
x

xoangon

11/27/2023, 8:27 PM
You're trying to go against the grain of the KMP approach for testing. Check out this thread https://kotlinlang.slack.com/archives/C3PQML5NU/p1616764097189700?thread_ts=1616764097.189700&cid=C3PQML5NU
👍 1
d

Darryl Pierce

11/28/2023, 2:30 PM
Thanks for the response. I guess I'm still very in my Java-mindset and see testing through those eyes with Mockito and JUnit.
x

xoangon

11/28/2023, 5:58 PM
It's difficult to change the mindset, but I think that the fake approach is the easiest to extend haha
🙌 1
5 Views