build: add kotlinx-kover for library code coverage
This commit is contained in:
parent
d72f3b85c4
commit
09a10678de
4 changed files with 11 additions and 1 deletions
|
@ -6,7 +6,10 @@
|
|||
import org.gradle.kotlin.dsl.withType
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
|
||||
plugins { id("com.github.android-password-store.kotlin-common") }
|
||||
plugins {
|
||||
id("com.github.android-password-store.kotlin-common")
|
||||
id("org.jetbrains.kotlinx.kover")
|
||||
}
|
||||
|
||||
tasks.withType<KotlinCompile>().configureEach {
|
||||
kotlinOptions {
|
||||
|
@ -15,3 +18,7 @@ tasks.withType<KotlinCompile>().configureEach {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks.koverCollectReports {
|
||||
outputDir.set(rootProject.layout.buildDirectory.dir("coverage-reports"))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue