android-jacoco-setup

Automates JaCoCo code coverage setup in Gradle-based Android projects.

6|Updated Jun 24, 2026
One-click install
npx skills add https://github.com/PL-Coding-GmbH/Skills --skill android-jacoco-setup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: android-jacoco-setup
Source: https://github.com/PL-Coding-GmbH/Skills/tree/main/skills/android-jacoco-setup
Command: npx skills add https://github.com/PL-Coding-GmbH/Skills --skill android-jacoco-setup

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and assets (resource) components.

What problem does it solve?

This Skill automates the setup of JaCoCo code coverage for Gradle-based Android projects, making it easy to apply the JaCoCo plugin, pin its tool version, and enable coverage on the debug build type.

Core Features & Use Cases

  • JaCoCo Plugin Application: Applies the JaCoCo plugin to a Gradle Android project.
  • Version Pinning: Pins the JaCoCo tool version from Maven Central.
  • Coverage Enablement: Enables unit-test and instrumentation-test coverage on the debug build type.
  • Project Layout Adaptation: Adapts to both convention-plugin and single-module project layouts.
  • Use Case: For Android developers who want to quickly set up code coverage for their projects without manual configuration.

Quick Start

Run the skill to set up JaCoCo code coverage for your Android project.

Frequently Asked Questions about android-jacoco-setup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up JaCoCo code coverage in an Android Gradle project?

To set up JaCoCo code coverage, you can run this Skill to automatically apply the JaCoCo plugin, pin its tool version from Maven Central, and enable coverage on debug builds in your Android Gradle project.

Does this JaCoCo Gradle configuration work with convention plugins?

Yes, this JaCoCo Gradle configuration adapts to both convention-plugin and single-module project layouts, ensuring the code coverage setup is correctly applied across different Android project architectures.

What is the best way to enable code coverage for debug builds in Android?

The best way to enable code coverage for debug builds is to use an automated setup that applies the JaCoCo plugin and specifically targets the debug build type for unit-test and instrumentation-test coverage.

Do I need to manually specify the JaCoCo tool version for my Android project?

No, you do not need to manually specify the JaCoCo tool version. This setup pins the JaCoCo tool version directly from Maven Central to ensure consistent code coverage reporting across your Android builds.

What Gradle and Android project requirements are needed for JaCoCo automation?

To automate JaCoCo setup, your environment requires a Gradle-based Android project and the JaCoCo library. The automation then handles plugin application and coverage enablement without manual configuration.