Add a new unit test for a class that currently lacks one or add a new test case to an existing test file, verifying improvement with Kover.
69
83%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
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.
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.
src/ that has complex logic but logic coverage is missing or incomplete../gradlew testClasses to compile all sources (production and test) and ensure the project is in a valid state../gradlew verifyPlugin to ensure no plugin verification issues exist../gradlew test (or specific test if it exists) to establish current pass/fail status../gradlew koverHtmlReport or ./gradlew koverXmlReport) to determine current coverage percentage for target class.[ClassName]Test) in testSrc/ if it doesn't exist../gradlew testClasses to ensure new test compiles../gradlew verifyPlugin to ensure no regressions in plugin verification.[TestFileName]").Add unit tests for [Class Name]. Coverage verified using Kover. Coverage improvement: [Class Name]: ~[X]% line coverage ([Y] covered, [Z] uncovered).21aaf0b
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.