flutter/add-missing-unit-test
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.
npx skills add https://github.com/flutter/flutter-intellij --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.
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).Take flutter/add-missing-unit-test from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.