android jacoco coverage empty with gradle

前端 未结 8 2152
旧巷少年郎
旧巷少年郎 2021-01-12 23:39

I\'m trying to make jacoco create a code coverage report for my android test project. I have the following in build.gradle:

apply plugin: \'com.android.appli         


        
8条回答
  •  南笙
    南笙 (楼主)
    2021-01-13 00:20

    Try to generate the debug coverage report using Nexus device (5 or 5x), it will works perfectly. I was facing same issue with Samsung devices (coverage.ec is empty) but after that I run it with Nexus 5x and everything was working fine.

提交回复
热议问题