Hi all Kotliners :wave: Have you ever experienced ...
# mockk
g
Hi all Kotliners 👋 Have you ever experienced a “weird interaction” (I don’t know how to define it better…) between 
MockK
 and 
Jacoco
 in a 
Maven
 project? I have a couple of unit #kotest in which I inject some 
@Mockk
 dependencies. Until the Jacoco Maven Plugin 
0.8.3
 all runs smoothly, but when I upgrade it from the 
0.8.4
 to the latest 
0.8.7
 then one dependency is not injected by the
Copy code
MockKAnnotations.init(this)
and some NPE is raised in the tests.  Thanks
m
At first it seems absurd that Jacoco would interfere with Mockk, but on second thought I remember that it instruments bytecode! https://www.eclemma.org/jacoco/trunk/doc/implementation.html So this but could be Jacoco’s fault