Jacoco没有使用PowerMockito显示代码覆盖率

时间:2019-11-25 09:31:02

标签: junit mockito powermockito

我已经使用PowerMockito为私有方法编写了测试类。但是Jacoco没有反映这些代码更改。我正在使用以下版本。我们该怎么办?

 testCompile group: 'junit', name: 'junit', version:'4.12'
    testCompile group: 'org.easymock', name: 'easymock', version: '4.0.1'
    testCompile group: 'org.hamcrest', name: 'hamcrest-core', version: '1.3'
    testCompile group: 'org.javassist', name: 'javassist', version: '3.20.0-GA'
    testCompile group: 'org.mockito', name: 'mockito-all', version: '1.10.19'
    testCompile group: 'org.objenesis', name: 'objenesis', version: '2.1'
    testCompile group: 'org.powermock', name: 'powermock-api-mockito', version: '1.6.3'
    testCompile group: 'org.powermock', name: 'powermock-api-support', version: '1.6.3'
    testCompile group: 'org.powermock', name: 'powermock-core', version: '1.6.3'
    testCompile group: 'org.powermock', name: 'powermock-module-junit4', version: '1.6.6'
    testCompile group: 'org.powermock', name: 'powermock-module-junit4-common', version: '1.6.3'
    testCompile group: 'org.powermock', name: 'powermock-reflect', version: '1.6.3'
    testCompile group: 'org.powermock', name: 'powermock-api-mockito-common', version: '1.6.5'

0 个答案:

没有答案