Kover Your Code: A Practical guide to Android Test Coverage
summary
A simple notes app demonstrates integrating Kover into Gradle, adding filters to exclude DI and UI classes, and running cover verify in GitHub Actions to enforce per-PR coverage only for changed files via diff-only filtering. Example thresholds use 80% line and 70% branch coverage; generated HTML reports show classes at 100% and others at 88% or a failing PR at 33%, forcing test additions before merge.
AI-written summary · about
chapters (10)
- 0:00Test coverage in Android
- 1:25Why coverage matters
- 2:08Introducing Kover
- 3:45Demo: note-taking app
- 4:29Kover in Gradle
- 6:14Coverage in CI with GitHub Actions
- 7:43Kover report output
- 9:52Enforce thresholds in PRs
- 12:55Branch coverage explained
- 13:51Summary: Kover
related talks
46mHow I introduced code coverage and wrote a Gradle plugin for a baseline
38mCode Quality on Android - A grumpy old man's perspective
22mWe got your code, covered!
27mThe Journey of Testing
42mThe state of code coverage for Kotlin
18mDetermining Automated Test Coverage for iOS and Android
38mThe state of code coverage for Kotlin
19mTesting Your Tests With Code Coverage
