android jacoco coverage empty with gradle

前端 未结 8 2250
旧巷少年郎
旧巷少年郎 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:10

    I use same gradle.build and just enter the command below to terminal. It gave me coverage report and test result as a html page.

    $./gradlew createDebugCoverageReport

    Another suggestion is ; enter terminal

    $./gradlew --gui

    it opens a gui window and you can find the correct command.

提交回复
热议问题