Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

run_tests

Skill by androidx

Guides an AI assistant through finding and running unit, instrumentation and Firebase Test Lab tests in the AndroidX repository. Aimed at developers working on AndroidX code.

  • Score 82
  • 6.2k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install run_tests

Built from the published package, never by AI.

git clone --depth 1 https://github.com/androidx/androidx /tmp/androidx && mkdir -p ~/.claude/skills && cp -r /tmp/androidx/.agents/skills/run_tests ~/.claude/skills/run-tests

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install run_tests in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The run_tests skill gives an AI assistant instructions for executing tests in the AndroidX repository. It explains how to find a test file and its Gradle module, then choose the right task for unit tests, instrumentation tests on connected devices, or instrumentation tests on Firebase Test Lab (FTL). It also shows how to filter runs by class or method.

The skill covers reproducing flaky tests on FTL with a parameterized test and the ftlOnApis task. It also describes screenshot tests that compare rendered UI against golden reference images, including how to pull output files with adb and update goldens in the support-goldens repository. It is aimed at developers who work on AndroidX code and run tests from the command line.

Written from the project's SKILL.md and checked against it.

What it can do

  • Find and run a specific testLocates a test file, identifies its Gradle module and runs it by class or method.
  • Module discoveryMaps directory paths to Gradle project names and checks whether a module is KMP or standard Android.
  • Unit testing (JVM)Runs host-side unit tests with the test or testAndroidHostTest tasks and the --tests filter.
  • Instrumentation testingRuns tests on connected devices or emulators with connectedAndroidTest or connectedAndroidDeviceTest.
  • Firebase Test Lab runsRuns instrumentation tests on FTL using ftl<device><api> tasks and lists available combinations.
  • Reproducing flakes on FTLRuns a parameterized test many times on FTL using the ftlOnApis task with a chosen API level.
  • Screenshot test workflowGuides running screenshot tests on a Medium Phone API 35 emulator and pulling output files with adb.
  • Updating screenshot goldensExplains mapping failed screenshot outputs to the golden repo and uploading linked CLs with a shared topic.

What you need

  • A checkout of the AndroidX repository with Gradle
  • ADB and a connected device or emulator for instrumentation tests
  • Firebase Test Lab access for remote runs
  • android-cli for managing emulators (recommended in the source)
  • A Medium Phone API 35 emulator for screenshot tests

Try asking

  • Run the BasicTextFieldTest#longText_doesNotCrash_singleLine test in AndroidX.
  • Find the Gradle module for appcompat/appcompat and list its test tasks.
  • Run the MyTest class on Firebase Test Lab with the mediumphoneapi35 device.

Good to know

  • FTL is used only for instrumentation tests, not local unit tests.
  • Screenshot tests need a specific emulator configuration, typically Medium Phone API 35 and API 35.
  • For FTL flake runs, the assistant must ask the user for the API level if it is not provided.
  • The source describes steps for a Google-internal Gerrit and repo upload workflow.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/run_tests/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md12 KB

Alternatives to run_tests

All alternatives →
openclaw-github-repo-commandersickn33
94

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.

AAA Skill 50k
gradiogradio-app
94

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.

AAA Skill 44k
hig-components-menussickn33
94

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.

AAA Skill 50k
fastapi-templateswshobson
94

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.

AAA Skill 43k
appfunctionsandroid
94

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.

AAA Skill 11k
agent-qa-authoringsickn33
94

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.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

run_tests: common questions

How does this skill decide between unit and instrumentation tests?

Tests in test, androidHostTest or jvmTest folders are unit tests. Tests in androidTest or androidDeviceTest folders are instrumentation tests.

Can it run tests on Firebase Test Lab?

Yes. The source describes ftl<device><api> tasks for instrumentation tests and an ftlOnApis task for repeating flaky tests.

How are screenshot golden images updated?

The skill says to pull actual screenshots with adb, rename them to the golden filename in the textproto file, copy them to the sibling golden repo and upload both CLs with a shared topic.

How do I install run_tests?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is run_tests free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is run_tests safe to use?

It scores 82 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 run_tests?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

run_tests Install

Add to stack

Loading.