Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

tests-maintenance

БесплатноБез исполняемых скриптовНе проверен

Maintains IdeaVim test suite quality. Reviews disabled tests, ensures Neovim annotations are documented, and improves test readability. Use for periodic test…

JetBrainsот JetBrains★ 10 295 звёзд на GitHub19 установок в других каталогах

Об этом скилле

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:

  1. One test per run: Focus on a single test file or test method
  2. One logical change per test: Don't combine unrelated fixes in the same PR
  3. Group only if identical: Multiple @TestWithoutNeovim annotations 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_USED with description
  • Add descriptions to 3 tests that all use SCROLL reason (same fix pattern)
  • Re-enable one @Disabled test that now passes

❌ Bad (too many changes):

  • Update DIFFERENT to SCROLL in one test AND PLUGIN in 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:

  1. Try running it: ./gradlew test --tests "ClassName.testMethod"
  2. If it passes: Investigate what changed, re-enable with explanation
  3. If it fails: Ensure reason is documented in @Disabled annotation
  4. 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 description parameter for non-obvious cases
  • Check if the reason is still valid
  • Consider if test could be split: part that
Полный SKILL.md на GitHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить tests-maintenance с