Hello Everyone, i completed My POC in KMM using Kt...
# multiplatform
n
Hello Everyone, i completed My POC in KMM using Ktor, Realm and shared ViewModel, so now only UI need to take care in android and iOS. now i need to write the Unit Testing for Ktor, realm and shared viewmodel also, can anyone please share the blog or sample how we can write unit testing and do the mocking in kotlin multiplatform, Thanks to @John O'Reilly , i have done all these by learning from his blog's and sample code
👀 1
j
mockk is multiplatform but I prefer just using fakes. ktor has a mocking feature/plugin. About realm I have no idea
âž• 1
n
if you have any reference let me know thanks for info
j
mockk and ktor have really good docs, you can get it from their repos
r
afaik K/N support from mockk is still wip: https://github.com/mockk/mockk/issues/58
m
I have used fakes in my project for testing viewmodels https://github.com/CurrencyConverterCalculator/CCC you can check
client>src>commonTest