coverage-guide

Executes Gradle builds and collects JVM-based project coverage with Surefire/Failsafe reports.

Updated Dec 11, 2025
One-click install
npx skills add https://github.com/semicolon-devteam/semo --skill coverage-guide
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: coverage-guide
Source: https://github.com/semicolon-devteam/semo/tree/main/packages/eng/spring/skills/run-tests/references/coverage-guide.md
Command: npx skills add https://github.com/semicolon-devteam/semo --skill coverage-guide

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

JaCoCo 커버리지 설정 및 해석에 대한 표준 가이드를 제공합니다.

Core Features & Use Cases

  • 커버리지 목표표: 라인/브랜치/메서드 커버리지 목표 제시.
  • 예외 처리 규칙: 커버리지 제외 패턴 및 예외 처리 안내.
  • CI/CD 통합: 코드 커버리지 리포트를 CI에 연동하는 방법.

Quick Start

빌드 스크립트에 커버리지를 적용하고 보고서를 확인합니다.

Frequently Asked Questions about coverage-guide

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

FAQPage Schema
How do I set up JaCoCo code coverage for a Spring Boot project?

JaCoCo coverage is configured in your Gradle build script to measure line, branch, and method coverage across unit and integration tests. Add the JaCoCo plugin, configure coverage goals, and run gradle test or gradle check to generate HTML reports showing which code paths your tests execute.

What are code coverage targets and how do I apply them in Spring projects?

Coverage targets set minimum thresholds—typically 70–80% for line coverage, lower for branch coverage—that your build enforces. Define these targets in your Gradle configuration to fail builds that fall short, ensuring consistent test quality across your Spring and Kotlin codebase.

How do I exclude code from JaCoCo coverage reports?

Exclude patterns in JaCoCo configuration let you skip generated code, exceptions, or getters from coverage metrics. Apply exclusion rules in Gradle to focus reports on business logic and reduce noise in coverage analysis for Spring projects.

Can I integrate JaCoCo coverage reports into my CI/CD pipeline?

Yes. JaCoCo generates machine-readable reports that CI systems consume to track coverage trends, block merges below thresholds, or publish metrics. Configure your CI pipeline to run gradle check and parse the coverage output alongside test results.

What's the difference between line, branch, and method coverage in JaCoCo?

Line coverage counts executed statements; branch coverage measures conditional paths taken; method coverage tracks which functions ran. JaCoCo reports all three to give you layered visibility into test completeness—line coverage alone misses untested branches.

How do I run integration tests separately from unit tests with coverage?

Gradle tasks like integrationTest run a separate test suite; JaCoCo aggregates coverage from both. Configure distinct test sources and coverage reports to distinguish unit and integration test quality, then merge results in CI for a complete picture.