Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yennamsanthosh-skyflow opened this issue Apr 29, 2022 · 0 comments

Comments

@yennamsanthosh-skyflow
Copy link

yennamsanthosh-skyflow commented Apr 29, 2022

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 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant