Unable to get Jacoco to work with Powermockito using offline instrumentation

前端 未结 12 1743
醉梦人生
醉梦人生 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:57

    I had same issue with JaCoCo On-the-fly and PowerMock. 0% code coverage was generated every time

    Found out that JaCoCo version 0.7.7.201606060606 and PowerMock version 1.6.2 are compatible and code coverage is generated successfully.

提交回复
热议问题