android-jvm-test-coverage

Analyze Java/Kotlin JVM unit-test coverage in Android Gradle projects with JaCoCo.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires Jacoco, Gradle, and includes scripts (resource) and assets (resource) components.

What problem does it solve?

This Skill measures JVM unit-test coverage for native Android Gradle projects, providing a comprehensive report similar to Android Studio.

Core Features & Use Cases

  • Measure Coverage: Calculate the Class/Method/Line/Branch percentages for JVM unit tests.
  • Integration with Android Studio: Produces reports in a style similar to Android Studio's "Run with Coverage" feature.
  • Module and Package-Level Details: Offers insights at the module, package, and class levels.
  • Use Case: When you want to ensure that all Java/Kotlin code within an Android project is thoroughly tested, without the need for Android Studio.

Quick Start

Run the android-jvm-test-coverage skill to analyze the coverage of a specific module by specifying its Gradle path, such as :core:domain.

Frequently Asked Questions about android-jvm-test-coverage

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

FAQPage Schema
How do I measure JVM unit-test coverage in an Android Gradle project?

You measure JVM unit-test coverage by running the skill on your Android Gradle project, which uses JaCoCo to calculate Class, Method, Line, and Branch percentages for Java and Kotlin code.

Can I generate Android Studio style coverage reports without opening the IDE?

Yes, you can generate coverage reports similar to Android Studio's "Run with Coverage" feature directly from the command line, providing module and package-level insights for your JVM tests.

Do I need JaCoCo and Gradle to analyze Kotlin unit-test coverage for Android?

Yes, you need JaCoCo and Gradle to collect and analyze JVM unit-test coverage, as the skill relies on these tools to generate the coverage reports for native Android projects.

How do I check test coverage for a specific Gradle module like core domain?

You check test coverage for a specific module by specifying its Gradle path, such as :core:domain, when running the skill to analyze the targeted JVM unit tests.

What levels of coverage details are provided for Android JVM tests?

The coverage analysis provides detailed insights at the module, package, and class levels, calculating Class, Method, Line, and Branch percentages for your Android JVM tests.