Closed jigarpandyadev closed 4 months ago
Hi, could you please clarify, which task do you use to generate the report? And is the set of Android build variants the same in all modules?
@shanshin I have only debug and release variants for all modules. I tried with ./gradlew koverHtmlReport and ./gradlew koverHtmlReportDebug commands. I also tried version 0.8.2. Also when I run ./gradlew koverLog command, I get No sources for some of the modules.
Using 0.8.2
, try to call ./gradlew :app:koverHtmlReportDebug
and open the report in the build directory of the app
module (if you specify dependencies { kover(project("...")) }
in app
).
I tried as you suggested but still no help.
In this case, a reproducer project is needed
Can you check in this demo project, why modules common2 and library2 have No coverage information was found problem Sketchboard.zip
I tried your example, call ./gradlew clean :app:koverHtmlReportDebug
, open file specified in logs file:///.../app/build/reports/kover/htmlDebug/index.html
and there are classes in it.
Please double check that you are opening a new generated report
Hey @shanshin thanks for checking. pls see in the attached screenshot that you shared, it doesn't list packages from common2 and library2 modules. My concern is, I'm unable to generate coverage for all the modules.
As far as I can see, there is not a single class in the library2
or common2
package in your project.
If you add any class there, for example CommonClass
, you will see it in the report
thanks for the help @shanshin.
I am using Kover 0.7.6 for a multi-module android app.
in project's build.gradle, have added plugin
id("org.jetbrains.kotlinx.kover") version "0.7.6" apply false
Also based on an open issue, have added
in app module's build.gradle,
id("org.jetbrains.kotlinx.kover")
and also added depenedencies of other modules in app module
kover project(":module")
also added kover plugin to other modules. but I keep getting the error like in the attached screenshot. Any help is appreciated.