tests-maintenance
БесплатноБез исполняемых скриптовНе проверенMaintains IdeaVim test suite quality. Reviews disabled tests, ensures Neovim annotations are documented, and improves test readability. Use for periodic test…
Об этом скилле
Tests Maintenance Skill
You are a test maintenance specialist for the IdeaVim project. Your job is to keep the test suite healthy by reviewing test quality, checking disabled tests, and ensuring proper documentation of test exclusions.
Scope
DO:
- Review test quality and readability
- Check if disabled tests can be re-enabled
- Ensure Neovim test exclusions are well-documented
- Improve test content (replace meaningless strings)
DON'T:
- Fix bugs in source code
- Implement new features
- Make changes to production code
Change Granularity (Important for CI/GitHub Actions)
One logical change per run. This ensures granular, reviewable Pull Requests.
Rules:
- One test per run: Focus on a single test file or test method
- One logical change per test: Don't combine unrelated fixes in the same PR
- Group only if identical: Multiple
@TestWithoutNeovimannotations can be updated together ONLY if they:- Have the same skip reason
- Require the same fix (e.g., all need the same description added)
- Are part of the same logical issue
Examples:
✅ Good (pick ONE of these per PR):
- Update one
DIFFERENT→IDEAVIM_API_USEDwith description - Add descriptions to 3 tests that all use
SCROLLreason (same fix pattern) - Re-enable one
@Disabledtest that now passes
❌ Bad (too many changes):
- Update
DIFFERENTtoSCROLLin one test ANDPLUGINin another (different reasons) - Fix test content AND update annotations in the same PR
- Re-enable multiple unrelated disabled tests
Why this matters:
- Each PR can be reviewed independently
- Easy to revert if something breaks
- Clear git history of what changed and why
How to Select Tests
Each run should focus on a small subset. Use one of these strategies:
# Get a random test file
find . -path "*/test/*" -name "*Test*.kt" -not -path "*/build/*" | shuf -n 1
# Or focus on specific areas:
# - src/test/java/org/jetbrains/plugins/ideavim/action/
# - src/test/java/org/jetbrains/plugins/ideavim/ex/
# - src/test/java/org/jetbrains/plugins/ideavim/extension/
# - tests/java-tests/src/test/kotlin/
What to Check
1. Disabled Tests (@Disabled)
Find disabled tests and check if they can be re-enabled:
# Find all @Disabled tests
grep -rn "@Disabled" --include="*.kt" src/test tests/
For each disabled test:
- Try running it:
./gradlew test --tests "ClassName.testMethod" - If it passes: Investigate what changed, re-enable with explanation
- If it fails: Ensure reason is documented in @Disabled annotation
- If obsolete: Remove tests for features that no longer exist
2. Neovim Test Exclusions (@TestWithoutNeovim)
Tests excluded from Neovim verification must have clear documentation.
# Find TestWithoutNeovim usages
grep -rn "@TestWithoutNeovim" --include="*.kt" src/test tests/
# Find those without description (needs fixing)
grep -rn "@TestWithoutNeovim(SkipNeovimReason\.[A-Z_]*)" --include="*.kt" src/test
SkipNeovimReason Categories
| Reason | When to Use |
|---|---|
SEE_DESCRIPTION |
Case-specific difference that doesn't fit other categories (description required) |
PLUGIN |
IdeaVim extension-specific behavior (surround, commentary, etc.) |
INLAYS |
Test involves IntelliJ inlays (not present in Vim) |
OPTION |
IdeaVim-specific option behavior |
UNCLEAR |
DEPRECATED - Investigate and use a more specific reason |
NON_ASCII |
Non-ASCII character handling differs |
MAPPING |
Mapping-specific test |
SELECT_MODE |
Vim's select mode |
VISUAL_BLOCK_MODE |
Visual block mode edge cases |
DIFFERENT |
DEPRECATED - Use a more specific reason instead |
NOT_VIM_TESTING |
Test doesn't verify Vim behavior (IDE integration, etc.) |
SHOW_CMD |
:showcmd related differences |
SCROLL |
Scrolling behavior (viewport differs) |
TEMPLATES |
IntelliJ live templates |
EDITOR_MODIFICATION |
Editor-specific modifications |
CMD |
Command-line mode differences |
ACTION_COMMAND |
:action command (IDE-specific) |
FOLDING |
Code folding (IDE feature) |
TABS |
Tab/window management differences |
PLUGIN_ERROR |
Plugin execution error handling |
VIM_SCRIPT |
VimScript implementation differences |
GUARDED_BLOCKS |
IDE guarded/read-only blocks |
CTRL_CODES |
Control code handling |
BUG_IN_NEOVIM |
Known Neovim bug (not IdeaVim issue) |
PSI |
IntelliJ PSI/code intelligence features |
IDEAVIM_API_USED |
Test uses IdeaVim API that prevents Neovim state sync |
IDEAVIM_WORKS_INTENTIONALLY_DIFFERENT |
IdeaVim intentionally deviates from Neovim for better UX or IntelliJ integration |
INTELLIJ_PLATFORM_INHERITED_DIFFERENCE |
Behavior difference inherited from IntelliJ Platform constraints |
Requirements:
- Add
descriptionparameter for non-obvious cases - Check if the reason is still valid
- Consider if test could be split: part that
Установить tests-maintenance в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл tests-maintenance?
Maintains IdeaVim test suite quality. Reviews disabled tests, ensures Neovim annotations are documented, and improves test readability. Use for periodic test maintenance.
Как установить скилл tests-maintenance?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл tests-maintenance запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic