`Mockk` Hey Guys, In my current application I am ...
# android
v
Mockk
Hey Guys, In my current application I am using mockito for mocking, currently I want to switch to mockk, so right now I have a lot of code which look like
Copy code
verify(loggingService, times(1)).log(any(), any())
is there a way to write wrapper method which will use mockk verify, so I I will not change all 8900 calls in my project ?
9️⃣ 2
🙂 1
🤔 1
8️⃣ 2
0️⃣ 2
2
m
I was thinking about this in my project but I decided not to do that as it’s not worth the time. For new tests I use mockk and if I modify existing tests I replace mockito with mockk with help of regexp text replace.
v
@Marcin Bak Thanks
r
No not really , you will have to do a complete refactor. Are you guys using it in production
v
yes
r
Hw is it in production? Have u ran into any issues thus far.we are planning to do the same
g
@vapoyan please vote for structural search and replace for kotlin issue: https://youtrack.jetbrains.com/issue/KT-10176
✔️ 1