Skip to content

Instantly share code, notes, and snippets.

@0neel
Created March 5, 2024 14:29
Show Gist options
  • Save 0neel/047307133cef9572a19fc73abb4edea2 to your computer and use it in GitHub Desktop.
Save 0neel/047307133cef9572a19fc73abb4edea2 to your computer and use it in GitHub Desktop.
kotlinx-kover 0.7.6 merged report setup
import com.android.build.gradle.api.AndroidBasePlugin
subprojects {
apply plugin: "org.jetbrains.kotlinx.kover"
plugins.withType(AndroidBasePlugin) {
configurations.implementation {
dependencies.withType(ProjectDependency) {
project.dependencies.kover dependencyProject
}
}
}
}
@0neel
Copy link
Author

0neel commented Mar 5, 2024

It configures Kover for every Gradle module and makes them include coverage from all of their dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment