Unable to get Jacoco to work with Powermockito using offline instrumentation

前端 未结 12 1733
醉梦人生
醉梦人生 2020-12-13 01:56

Given that Jacoco doesn\'t play nicely with PowerMockito when instrumenting \"on the fly\", I\'ve been trying to configure offline instrumentation in the hope this will give

12条回答
  •  时光取名叫无心
    2020-12-13 02:50

    I have tried these versions of the below softwares; they work together and generate the jacoco report without any extra effort. I use the gradle build tool with powermock, mockito and wiremock.

    powermock-api-mockito2:2.0.2
    powermock-module-junit4:2.0.2
    gradle 5.6.2
    

    The above correctly generates the jacoco coverage report.

提交回复
热议问题