This plugin wires JaCoCo code coverage into Android Gradle projects, generating per-variant coverage reports for unit tests and, when configured, instrumentation tests. It produces HTML and XML outputs that slot neatly into CI pipelines and code quality dashboards. Configuration options let you include or exclude classes (like generated code), merge coverage across flavors and build types, and enforce minimum thresholds to prevent regressions. The plugin integrates cleanly with the Android Gradle Plugin’s task graph, so coverage runs are reproducible across developers and build servers. It helps teams make coverage a first-class metric without hand-crafting custom Gradle tasks for every variant. By lowering setup friction, it encourages frequent measurement and concrete targets for improving test depth.
Features
- Generates JaCoCo code coverage reports for Android projects
- Supports both Android application and library modules
- Automatically creates coverage tasks across subprojects
- Compatible with Kotlin and Java plugins
- Easy plugin application via Gradle Scripts DSL
- Latest released version 0.16.0