Browse Source

Setup Kover

feature/jme/update_rust_sdk
Benoit Marty 2 years ago
parent
commit
b1f8c000c8
  1. 2
      app/build.gradle.kts
  2. 26
      build.gradle.kts
  3. 1
      gradle/libs.versions.toml

2
app/build.gradle.kts

@ -1,5 +1,3 @@ @@ -1,5 +1,3 @@
/*
* Copyright (c) 2022 New Vector Ltd
*

26
build.gradle.kts

@ -30,6 +30,7 @@ plugins { @@ -30,6 +30,7 @@ plugins {
alias(libs.plugins.ktlint)
alias(libs.plugins.dependencygraph)
alias(libs.plugins.sonarqube)
alias(libs.plugins.kover)
}
tasks.register<Delete>("clean").configure {
@ -151,3 +152,28 @@ allprojects { @@ -151,3 +152,28 @@ allprojects {
}
}
}
allprojects {
apply(plugin = "kover")
}
// Run `./gradlew koverMergedHtmlReport` to get report at ./build/reports/kover
// Run `./gradlew koverMergedReport` to also get XML report
koverMerged {
enable()
filters {
classes {
excludes.addAll(
listOf(
/*
"*Fragment",
"*Fragment\$*",
"*Activity",
"*Activity\$*",
*/
)
)
}
}
}

1
gradle/libs.versions.toml

@ -144,3 +144,4 @@ stem = { id = "com.likethesalad.stem", version.ref = "stem" } @@ -144,3 +144,4 @@ stem = { id = "com.likethesalad.stem", version.ref = "stem" }
stemlibrary = { id = "com.likethesalad.stem-library", version.ref = "stem" }
paparazzi = "app.cash.paparazzi:1.2.0"
sonarqube = "org.sonarqube:3.5.0.2730"
kover = "org.jetbrains.kotlinx.kover:0.6.1"

Loading…
Cancel
Save