You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mockito-experimental is used to test mocikito-inline firstly, and it contains some normal mockito related tests. And mockito is used to test mockito-core with related tests. mockito-kotlin is used to test mockito with Kotlin functions in Robolectric environment with mockito-core. Maybe we can combine mockito and mockito-kotlin with name mockito, and use this new module to test mokito-core related compatibility with Java and Kotlin. We also can move normal mockito tests from mockito-experimental to new mockito module and leave mockito-inline related tests to mockito-experimental, and rename mockito-experimental to mockito-inline. cc /@hoisie
Does it make sense to just have one mockito project that only uses mockito-inline? So we would move all of the tests to one project and that would use mockito-inline. From my understanding mockito inline and non-inline use the same instrumentation (bytebuddy-based), it's just that the inline one installs a java agent and hooks into the Instrumentation API. So in some sense mockito-inline tests already cover all of the functionality of the non-inline case.
Looks great to me. I don't know what the exact different between mockito-core and mockito-inline before. If mockito-inline can cover what mockito-core does, we can combine them to one module with mockito-inline to reduce tech debt. Could you help to combine those modules to one @ZSmallX ?
yeah, I would work on it, but I got little into mockito-core and mockito-inlne before. And I will do more investigations on it and combine those modules as one once they were confirmed to work the same for Robolectric integration tests.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
After this PR:
#7086
There are 3 modules related with mockito:
mockito
,mockito-kotlin
andmockito-experimental
. It brings several potential problems:Once we combine those modules as one, we can:
powermock
,mockk
etc.Beta Was this translation helpful? Give feedback.
All reactions