Could I solicit some opinions on `private val some...
# mockk
a
Could I solicit some opinions on
private val someMockedDependency: SomeClass = mockk()
vs
@MockK private lateinit var someMockedDependency: SomeClass
?
w
My 2 cents… I prefer the
= mockk()
, without the annotation, so you don’t need to “init” the AnnotationProccess, and in the tests where I use it, along the Robolectric, it was making a difference by around 6s (compared when using the
@MockK
with the “init” method)
1
a
👍 any thoughts on
@InjectMockKs
?
w
No 😞 (As I never used it)