vanniktech / gradle-android-junit-jacoco-plugin

Gradle plugin that generates JaCoCo reports from an Android Gradle Project
http://vanniktech.com
Apache License 2.0
400 stars 76 forks source link

Coverage Report for build types other than debug not working #190

Closed dsuresh-ap closed 3 years ago

dsuresh-ap commented 3 years ago

Also asked the question on SO here.

I don't think this is a plugin issue but maybe someone else has the answer to this. We have 3 build types, debug, qa and release. When running the combined report task or even just the debug coverage report task for any of the qa build types. It does not run the instrumented tests. The task just completed and coverage for only unit tests shows up.

Any answers would be appreciated!

dsuresh-ap commented 3 years ago

Found this in the BuildType.kt class of gradle:

override var isDebuggable: Boolean = false
        get() = // Accessing coverage data requires a debuggable package.
            field || isTestCoverageEnabled