add-missing-unit-test
Installation
SKILL.md
Skill: Add Missing Unit Test
You are tasked with adding a new unit test for a class that currently lacks one, or adding a new test case to an existing test file, to improve code coverage and reliability.
Objective
Add a new unit test for a class that currently lacks one, or add a new test case to an existing test file, to improve code coverage and reliability.
Workflow Instructions
1. Identify Target
- Choose a class in
src/that has complex logic but logic coverage is missing or incomplete.
2. Establish Baseline
- Run
./gradlew testClassesto compile all sources (production and test) and ensure the project is in a valid state. - Run
./gradlew verifyPluginto ensure no plugin verification issues exist. - Run
./gradlew test(or specific test if it exists) to establish current pass/fail status. - Run tests with Kover (
./gradlew koverHtmlReportor./gradlew koverXmlReport) to determine current coverage percentage for target class.