jacoco-android-gradle-plugin icon indicating copy to clipboard operation
jacoco-android-gradle-plugin copied to clipboard

Generated report shows 0% coverage for tests present in test folder

Open yennamsanthosh-skyflow opened this issue 3 years ago • 0 comments

Steps to reproduce :

   Jacoco Version : 0.1.5
   Language : Kotlin
   [https://github.com/skyflowapi/skyflow-android/pull/93/](github repo)

   Steps:

   ```
    added in build.gradle ( project level) :  
   
         classpath 'com.dicedmelon.gradle:jacoco-android:0.1.5'

   added in build.gradle (module level) : 

         1.    apply plugin: "com.dicedmelon.gradle.jacoco-android"
         2.     buildTypes { 
                     debug {
                           testCoverageEnabled true
                     }
                 }
          3.  buildFeatures {
                    dataBinding = true
               }

     run command : ./gradlew jacocoTestReport

Expected Behaviour  :

-      Generate report should show test coverage for tests present in both test (unit test) and androidTest folder (instrumentation 

    tests)

Actual Behaviour :

-     Generating report showing test coverage as 0% for test folder.
-     It is showing as expected for androidTest folder 

yennamsanthosh-skyflow avatar Apr 29 '22 05:04 yennamsanthosh-skyflow