一键导入
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.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
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.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Ensure the plugin's custom UI components are accessible to users with screen readers and other assistive technologies.
Optimize plugin size and security by removing unused dependencies and updating outdated libraries.
Prevent UI freezes and ensure a responsive user experience by validating threading rules and migrating blocking calls off the Event Dispatch Thread (EDT).
Reduce technical debt and improve code quality by systematically resolving static analysis warnings.
Reduce plugin size by scanning resources/icons and removing unreferenced assets.
Optimize memory usage, consistency, and performance by migrating standard Java/Kotlin classes to IntelliJ's specialized com.intellij.util implementations.
| name | add-missing-unit-test |
| description | 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. |
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).