How I introduced code coverage and wrote a Gradle plugin for a baseline
summary
Describes implementing a code coverage tool with baseline support and impact analysis for a Gradle-based project. Covers how to quickly add coverage, how to implement coverage baseline handling via a custom Gradle plugin, how to run commands efficiently for impact analysis, and how to configure GitHub CI to block PRs that fail coverage percent checks.
AI-written summary · about
chapters (17)
- 0:00Introduction
- 2:07Goals and objectives
- 4:13What is code coverage
- 6:20Choosing Kotlin Cover
- 8:27Tool requirements
- 10:16Setting up Kotlin Cover
- 13:08Need for Gradle plugin
- 16:03Plugin configuration
- 20:59Creating baseline command
- 23:33Generating report command
- 24:37Coverage check command
- 29:19Baseline implementation results
- 31:03What is impact analysis
- 34:20Setting up impact analysis
- 37:59Impact analysis results
- 39:03Coverage change dynamics
- 42:56Personal observations
related talks
14mKover Your Code: A Practical guide to Android Test Coverage
49mTest Coverage Visualization
26mImproving Coverage Analysis
35mRisk Based Code Coverage Analysis
45mGradle Build: Measuring What Matters Most
43mAn introduction and future of Ruby coverage library
19mTesting Your Tests With Code Coverage
31mMeasure End to End Tests Coverage
