You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Kover does not create a report for all modules if there are plain Kotlin modules within an Android project.
-> task koverHtmlReport only creates coverage report for Kotlin modules
-> task koverHtmlReportDebug only creates coverage report for Android modules
Expected behavior
Merged coverage report for all specified modules can be created using one kover Gradle task (e.g. build variant independent gradle kover task)
Use kover's multiproject example and make the lib module a plain Kotlin module (which it actually is)
lib/build.gradle
plugins {
id ("org.jetbrains.kotlin.jvm")
id ("org.jetbrains.kotlinx.kover")
}
dependencies {
testImplementation("junit:junit:4.13.2")
}
-> koverHtmlReport creates report for lib module only
-> koverHtmlReportDebug creates report for app module only
-> no merged report possible with the existing kover gradle tasks
Environment
Kover Gradle Plugin version: 0.7.0-Alpha
Gradle version: 8.0
Kotlin project type: Kotlin/Android - Multi Module
Coverage Engine version: KoverTool / JacocoTool (same behavior for both tools)
Other context important for this bug: -
The text was updated successfully, but these errors were encountered:
Hi,
unfortunately, DSL for integration of multiplatform and Android projects is not implemented at the moment.
The main problem here is that the build variants are known only in Android projects, there is no such information in a plain project and it is impossible to create appropriate tasks for each build variant.
As a solution, we may add a special task for which user can specify in the build script which Android build variant (only one or several?) will be used.
However, the design of such a feature was postponed until receiving feedback on the current implementation of fully Android projects.
Description
Kover does not create a report for all modules if there are plain Kotlin modules within an Android project.
-> task
koverHtmlReport
only creates coverage report for Kotlin modules-> task
koverHtmlReportDebug
only creates coverage report for Android modulesExpected behavior
Merged coverage report for all specified modules can be created using one kover Gradle task (e.g. build variant independent gradle kover task)
Example: detekt
detekt
,detektDebug
,detektRelease
detekt
detekt
to get results for all modulesReproducer
Use kover's multiproject example and make the
lib
module a plain Kotlin module (which it actually is)lib/build.gradle
->
koverHtmlReport
creates report for lib module only->
koverHtmlReportDebug
creates report for app module only-> no merged report possible with the existing kover gradle tasks
Environment
The text was updated successfully, but these errors were encountered: