I thought that at least Kotlin plus tests will work smoothly really but seems like such thing like backticks breaks everything in tests…
g
gildor
04/25/2018, 10:30 AM
btw, did you try to use mockk instead of mockito + powermock?
b
brainail
04/25/2018, 10:37 AM
Nope, I saw it of course and it looks great. I didn’t dive deep into this library but does it allow to mock static stuff smoothly? 🙂
We have thousands of tests and as an options we can leave all current tests as it is and start writing new ones using mockk
g
gildor
04/25/2018, 10:38 AM
Yes, it allows
yeah, of course, for existing code base I do not suggest it
I use both mockito and mockk in our project (in different modules), so good so far
but we don’t use any mocking of statics, so cannot say about this feature of mockk
b
brainail
04/25/2018, 10:40 AM
Oh, sounds really great, I will look into it then. Because I don’t wanna have random behavior for tests and with test written in Kotlin it looks much better to use something that written specially for Kotlin