disable-test
Skill by chromium
Disable-test is a Chromium skill that guides how to disable failing or flaky tests in C++, WebUI, and Android Java test suites. It is for developers working in the Chromium codebase.
Install disable-test
Built from the published package, never by AI.
git clone --depth 1 https://github.com/chromium/chromium /tmp/chromium && mkdir -p ~/.claude/skills && cp -r /tmp/chromium/agents/skills/disable-test ~/.claude/skills/disable-testRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/chromium/chromium /tmp/chromium && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/chromium/agents/skills/disable-test ~/.gemini/antigravity-cli/skills/disable-testAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill gives step-by-step instructions for disabling test cases in Chromium. It covers C++ GTest and browser tests using the DISABLED_ prefix or MAYBE_ macros with BUILDFLAGs, WebUI Mocha tests using test.skip(), and Android Java tests using JUnit annotations such as @DisabledTest, @DisableIf, and @Restriction. It also covers .filter files.
The skill asks the assistant to first confirm with the luci-test-results skill that the test is failing or flaking at HEAD on CI, and to check failure logs for state bleed from earlier tests in the same fixture or batch. Every disabled test must link to a bug, and the CL description needs Test history and Failed build lines. It is for Chromium contributors who need to disable a failing or flaky test.
Written from the project's SKILL.md and checked against it.
What it can do
- Verify failures at HEADUses the luci-test-results skill to confirm a test is actively failing or flaking on CI at HEAD.
- Disable C++ GTestsShows how to use the DISABLED_ prefix and MAYBE_ macros with BUILDFLAGs for platform-specific skips.
- Disable WebUI Mocha testsExplains using test.skip() or suite.skip() instead of disabling the whole GTest suite.
- Disable Android Java testsDescribes @DisabledTest, @DisableIf, and @Restriction annotations for Robolectric and instrumentation tests.
- Document disabled testsRequires a TODO with a bug link and Test history and Failed build lines in the CL description.
- Validate disabled testsLists steps to build the target, run the whole fixture, and run presubmits.
What you need
- Access to the Chromium source tree
- depot_tools with the luci-test-results skill
- A Buganizer or crbug bug ID for each disabled test
Try asking
- Disable the flaky MyTestCase test in my Chromium C++ fixture on Linux only
- Add a DisabledTest annotation with a crbug link to this Android Java test
- Help me write the Test history and Failed build lines for my CL
Good to know
- Requires a bug ID before disabling any test
- Relies on the luci-test-results skill for CI history checks
- Written for Chromium test frameworks only
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: agents/skills/disable-test/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
OWNERS18 B -
SKILL.md8 KB
Alternatives to disable-test
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
disable-test: common questions
When should I use @DisableIf instead of @DisabledTest in Chromium?
The source says to use @DisableIf for tests temporarily failing or flaky on specific Android SDK levels or form factors, so coverage stays active elsewhere. @Restriction is for tests that are inherently not applicable to a device type.
Why does the guide ask me to run the whole test fixture after disabling a test?
Running the full fixture or @Batch class confirms the disabled test is skipped and that skipping it does not make sibling tests fail. Disabling a victim of state bleed would shift the failure to the next test.
Does this skill cover .filter files?
The source says the guide covers .filter files and that they count as disabling a test, but the detailed steps shown are for C++, WebUI, and Android Java tests.
How do I install disable-test?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is disable-test free?
The code is published under the BSD-3-Clause licence. The service it connects to may have its own pricing.
Is disable-test safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, 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 disable-test?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
