Hello all!! I have one question about TDD on Kotli...
# getting-started
j
Hello all!! I have one question about TDD on Kotlin, in my case, in java, my stack to do TDD is jUnit + Mockito, and Rest-assured when have to test Rest services. In case of kotlin, is a good aproach this stack or are better other test framework?
a
the same approaches should work just fine — although note with Kotlin, classes are final by default so using Mockito to mock classes can be problematic
👍 1
f
I am having a real good experience with http://spekframework.org/ and https://github.com/npryce/hamkrest asserters
👍 1
j
Also, if you use mockito-inline you can mock final classes without modifying your code
d
You could take a look at https://github.com/nhaarman/mockito-kotlin it's a wrapper around mockito to make its methods more kotlin friendly
j
thank you guys, I will try this solutions
o
There is not only one problem about using mockito kotlin, try this one https://github.com/oleksiyp/mockk