tests-maintenance
Maintains IdeaVim test suite quality. Reviews disabled tests, ensures Neovim annotations are documented, and improves test readability. Use for periodic test maintenance.
Install
mkdir -p .claude/skills/tests-maintenance && curl -L -o skill.zip "https://mcp.directory/api/skills/download/8960" && unzip -o skill.zip -d .claude/skills/tests-maintenance && rm skill.zipInstalls to .claude/skills/tests-maintenance
About this skill
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 works with Neovim, part that doesn't
Special requirement for IDEAVIM_WORKS_INTENTIONALLY_DIFFERENT:
- ONLY use when you find clear evidence of intentional deviation:
- Explicit commit messages explaining the intentional difference
- Code comments documenting why IdeaVim deviates from Vim/Neovim
- Absolutely obvious cases (e.g., IntelliJ-specific features not in Neovim)
- DO NOT use based on guesswork or assumptions
- If uncertain, use
DIFFERENTorUNCLEARinstead and investigate git history/comments - The
descriptionparameter is mandatory and must explain what exactly differs and why
Special requirement for INTELLIJ_PLATFORM_INHERITED_DIFFERENCE:
- Use when behavior difference is due to IntelliJ Platform's underlying implementation
- Common cases include:
- Empty buffer handling (Platform editors can be empty, Neovim buffers always have a newline)
- Position/offset calculations for newline characters
- Line/column indexing differences
- The
descriptionparameter is mandatory and must explain:- What Platform behavior causes the difference
- How it manifests in the test
- Evidence can be found in Platform API documentation, IdeaVim code comments, or obvious Platform limitations
Special requirement for SEE_DESCRIPTION:
- Use as a last resort when the difference doesn't fit any standard category
- The
descriptionparameter is mandatory and must provide a clear, specific explanation - Use sparingly - if multiple tests share similar reasons, consider creating a new dedicated reason
- Always check existing reasons first before using this catch-all
Handling DIFFERENT and UNCLEAR (DEPRECATED):
Both DIFFERENT and UNCLEAR reasons are deprecated because they're too vague. When you encounter a test with either of these reasons, follow this process:
-
First, try removing the annotation and running with Neovim:
# Comment out or remove @TestWithoutNeovim, then run: ./gradlew test -Dnvim --tests "ClassName.testMethodName"IMPORTANT: Verify the output contains
NEOVIM TESTING ENABLEDto confirm Neovim testing is active. If this message is not present, the test ran without Neovim verification. -
If the test passes with Neovim:
- The annotation is outdated and should be removed
- IdeaVim and Neovim now behave identically for this case
-
If the test fails with Neovim:
- Analyze the failure to understand WHY the behavior differs
- Replace
DIFFERENTwith a more specific reason:IDEAVIM_API_USED- if test uses VimPlugin.* or injector.* APIs directlyIDEAVIM_WORKS_INTENTIONALLY_DIFFERENT- if IdeaVim intentionally deviates (need evidence)INTELLIJ_PLATFORM_INHERITED_DIFFERENCE- if difference comes from Platform constraintsSEE_DESCRIPTION- for unique cases that don't fit other categories (description required)- Or another appropriate reason from the table above
- Always add a
descriptionparameter explaining the specific difference
3. Test Quality & Readability
Meaningful test content: Avoid senseless text. Look for:
grep -rn "asdf\|qwerty\|xxxxx\|aaaaa\|dhjkw" --include="*.kt" src/test tests/
Replace with:
- Actual code snippets relevant to the test
- Lorem Ipsum template from CONTRIBUTING.md
- Realistic text demonstrating the feature
Test naming: Names should explain what's being tested.
4. @VimBehaviorDiffers Annotation
Tests marked with this document intentional differences from Vim:
@VimBehaviorDiffers(
originalVimAfter = "expected vim result",
description = "why IdeaVim differs",
shouldBeFixed = true/false
)
Check:
- Is the difference still valid?
- If
shouldBeFixed = true, is there a YouTrack issue? - Can behavior now be aligned with Vim?
Making Changes
When to Change
DO fix:
- Unclear or missing test descriptions
- Senseless test content
- Disabled tests that now pass
- Incorrect
@TestWithoutNeovimreasons - Missing
descriptionon annotations
DON'T:
- Fix source code bugs
- Implement missing features
- Major refactoring without clear benefit
Commit Messages
tests: Re-enable DeleteMotionTest after fix in #1234
The test was disabled due to a caret positioning bug that was
fixed in commit abc123. Verified the test passes consistently.
tests: Improve test content readability in ChangeActionTest
Replace meaningless "asdfgh" strings with realistic code snippets
that better demonstrate the change operation behavior.
tests: Document @TestWithoutNeovim reasons in ScrollTest
Added description parameter to clarify why scroll tests
are excluded from Neovim verification (viewport behavior differs).
Commands Reference
# Run specific test
./gradlew test --tests "ClassName.testMethod"
# Run all tests in a class
./gradlew test --tests "ClassName"
# Run tests with Neovim verification (look for "NEOVIM TESTING ENABLED
---
*Content truncated.*
More by JetBrains
View all skills by JetBrains →You might also like
flutter-development
aj-geddes
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.
drawio-diagrams-enhanced
jgtolentino
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
ui-ux-pro-max
nextlevelbuilder
"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."
godot
bfollington
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
nano-banana-pro
garg-aayush
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.
pdf-to-markdown
aliceisjustplaying
Convert entire PDF documents to clean, structured Markdown for full context loading. Use this skill when the user wants to extract ALL text from a PDF into context (not grep/search), when discussing or analyzing PDF content in full, when the user mentions "load the whole PDF", "bring the PDF into context", "read the entire PDF", or when partial extraction/grepping would miss important context. This is the preferred method for PDF text extraction over page-by-page or grep approaches.
Related MCP Servers
Browse all serversSupercharge your NextJS projects with AI-powered tools for diagnostics, upgrades, and docs. Accelerate development and b
Snowfort Circuit MCP — MCP server for AI coding agents enabling browser automation, electron automation and AI test auto
BrowserLoop: Capture web screenshots on Chrome with advanced screenshot taker add-on for web testing, visual verificatio
Connect to Currents Test Results for AI-driven analysis of test failures, suite optimization, and enhanced CI/CD trouble
Log Analyzer offers advanced Python log analysis, pattern filtering, pytest output parsing, and code coverage reporting
Scan your website for viruses and vulnerabilities with Code Audit (Ollama). Get a comprehensive site scanner virus check
Stay ahead of the MCP ecosystem
Get weekly updates on new skills and servers.