any good links to a step-by-step comparison with mockito?
ā 2
l
LeoColman
02/11/2019, 2:42 PM
I don't think there's a big comparison with mockito. You can check some of the documentation at mockk.io
From my experience, coming from a Java/Mockito background, I don't want to not use Mockk ever again.
IMO, it's way simpler than Mockito, while also being more powerful, and funnier to write. I don't feel the hassle I usually feel with Mockito
g
ghedeon
02/11/2019, 3:22 PM
the dsl is almost the same... most of the time I hear "because it's written in Kotlin", but that tells jack shit about the quality of the library šimple_smile: . The api was a subject to change last time I've tried it and java interop was buggy, probably much more stable now.
l
LeoColman
02/12/2019, 12:01 PM
I don't think it's only because "It's written in Kotlin". More because it's more compatible with Kotlin than Mockito-Kotlin.
Code is easier to write, and it's more powerful. That's why I chose to use it