https://kotlinlang.org logo
#android
Title
# android
w

waylander

01/28/2019, 6:57 AM
Hi, my colleague run unit test's on kotlin ( he used mockk) and saw speed of executes test's more slowly than java. why ? what is better use for unit test's on kotlin ( some libraries) ?
g

gildor

01/28/2019, 7:17 AM
Apparently if you use completely different mocking framework (which is one of slowest thing during unit testing) you can get different results. I believe if you run java and kotlin tests with the same unit test framework and mocking library it will be the same or very close
If we are talking about mockk, see this discussion https://github.com/mockk/mockk/issues/13 You also can discuss it in #mockk
w

waylander

01/28/2019, 10:05 AM
Thanks
15 Views