https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
s

sushma nayak

03/09/2021, 2:36 PM
Any examples for testing common shared code in KMM?
1
k

Kris Wong

03/09/2021, 2:42 PM
just add tests to
commonTest
i would expect that the new project template has that
s

sushma nayak

03/11/2021, 6:38 AM
Thanks people 🙂 @Mustafa Ozhan, Your example helped me test coroutines. 🙂 I had forgotten to tick testing option while creating the project and hence had to struggle a bit to set it up manually. I come from iOS platform experience. Android studio being new, was bit of a task.
All set and unit tests working now. :)
🎉 1
m

Mustafa Ozhan

03/11/2021, 8:27 AM
I am glad that it worked 🙂
k

Kris Wong

03/11/2021, 2:04 PM
testing is something that they never really got right for Android. the iOS experience is much better.
3 Views