OpenParable
Skip to content
← Back to skills

Kover Gate Report

Testing & Quality
kover-gate-report

Kover Gate Report is an Agent Skill for testing & quality published in the sebaslogen/resaca repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Run KoverGate coverage gate and fix coverage gaps after writing or modifying tests

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/sebaslogen/resaca/blob/HEAD/.agents/skills/kover-gate-report/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/kover-gate-report, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

koverGate Report Skill

After writing or modifying tests in a module, check coverage gaps and close them.

Steps

  1. Run the coverage gate task for the module you changed:

    ./gradlew :<module-name>:koverGateReport
    

    Replace <module-name> with the Gradle module path (e.g., :app, :core:data).

  2. Read the JSON gap report:

    <module-name>/build/reports/kover/gap-report.json
    
  3. Interpret results:

    • If "passed": true — coverage requirements are met. Done.
    • If "passed": false — examine the files array. Each entry lists:
      • uncoveredLines: line numbers with no coverage (mi > 0)
      • missedBranchLines: line numbers with partial branch coverage (mb > 0)
  4. Write targeted tests to cover the identified lines and branches. Focus on:

    • The specific line numbers listed in uncoveredLines
    • The conditional paths at lines listed in missedBranchLines
  5. Re-run the task to confirm gaps are closed:

    ./gradlew :<module-name>:koverGateReport
    

    Repeat until "passed": true.

Notes

  • Adjust thresholds in your module's build.gradle.kts via the koverGate {} block if 100% is not the right target for a specific metric.
  • Disable metrics that don't apply with disabledMetrics.set(setOf(CoverageMetric.BRANCH)).
  • The JSON report is always written (even on pass) at build/reports/kover/gap-report.json.