android jacoco coverage shows 0% with gradle however there are 95% tests covering code

前端 未结 2 892
暗喜
暗喜 2021-01-21 18:30

I\'m trying to get jacoco create a code coverage report for my android test project.

Gradle version classpath \'com.android.tools.build:gradle:2.0.0\'

2条回答
  •  醉梦人生
    2021-01-21 19:01

    Generation of coverage for your project using command

    ./gradlew clean createDebugCoverageReport
    

    works just fine:

    The only thing that I changed - is compileSdkVersion from 23 to 25 and buildToolsVersion from 23.0.1 to 25.0.2, because this is the versions that I have.

提交回复
热议问题