bazel-test-migration
Skill by JetBrains
Migrates IntelliJ JPS module tests to Bazel and helps debug failures that appear only under Bazel. Written for developers working on the IntelliJ codebase.
Install bazel-test-migration
Built from the published package, never by AI.
git clone --depth 1 https://github.com/JetBrains/intellij-community /tmp/intellij-community && mkdir -p ~/.claude/skills && cp -r /tmp/intellij-community/.claude/skills/bazel-test-migration ~/.claude/skills/bazel-test-migrationRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/JetBrains/intellij-community /tmp/intellij-community && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/intellij-community/.claude/skills/bazel-test-migration ~/.gemini/antigravity-cli/skills/bazel-test-migrationAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install bazel-test-migration in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
The bazel-test-migration skill guides an assistant through moving a JPS test module from IntelliJ's JPS build to Bazel. It covers establishing a baseline of known failures, configuring the Bazel target from the module's .iml file, and registering the module before regenerating build files. It also explains how to resolve test data through runfiles and how to debug focused failures with test filters.
It is aimed at developers working on the IntelliJ codebase, in the Ultimate repository or standalone Community. The skill says to migrate complete modules, keep existing test behavior, and avoid adding exclusions or disabled tests to make a run green. Verification ends with a full target run and CI coverage checks before the module is added to the migrated-module list.
Written from the project's SKILL.md and checked against it.
What it can do
- Establish baselineRecords known failures and inspects the branch, test framework and generated target before migrating.
- Configure Bazel targetKeeps the .iml file as the dependency source and guides test dependency scopes.
- Register and regenerateRegisters changed modules and regenerates build files using the listed commands.
- Resolve test inputsCovers filegroups, test data paths and runfiles resolution under Bazel.
- Debug focused failuresRuns a single class or method with a test filter and fresh results.
- Verify the complete targetRuns the full target without filters and checks that tests were actually discovered.
- Complete the switchCovers CI coverage comparison and updating the migrated-module list.
What you need
- Bazel
- An IntelliJ Ultimate or standalone Community checkout
- Bun for the module registration script
Try asking
- Migrate the tests in this JPS module to Bazel and list the required steps.
- Debug why ExampleTest fails only under Bazel, using a test filter.
- Check that the full Bazel test target discovers all migrated tests.
Good to know
- Keeps existing test behavior unless a failure shows an invalid environment assumption.
- Does not add exclusions, assumptions or disabled tests to make a migration green.
- Says not to patch missing jars or descriptors into runfiles with copy_file.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/bazel-test-migration/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB
Alternatives to bazel-test-migration
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
bazel-test-migration: common questions
Does it change test assertions?
The skill says to keep existing assertions and coverage. It does not add exclusions or disabled tests to make the migration pass.
Does it work outside the Ultimate repository?
Yes. The source covers standalone Community too, using //... targets and a separate regeneration script.
Does adding a module to the migrated list update CI?
No. The source says the list only makes tests.cmd refuse migrated modules and does not configure every CI build.
How do I install bazel-test-migration?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is bazel-test-migration free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is bazel-test-migration safe to use?
It scores 78 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to bazel-test-migration?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
