running-tests-on-gradle-managed-devices

Automate instrumented Android test provisioning and execution on Gradle Managed Devices.

Updated Jul 20, 2026
One-click install
npx skills add https://github.com/trancee/MeshLink-template --skill running-tests-on-gradle-managed-devices-trancee
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: running-tests-on-gradle-managed-devices
Source: https://github.com/trancee/MeshLink-template/tree/main/.agents/skills/android-testing-skills/instrumentation/managed-devices/running-tests-on-gradle-managed-devices
Command: npx skills add https://github.com/trancee/MeshLink-template --skill running-tests-on-gradle-managed-devices-trancee

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill eliminates the inconsistency and manual overhead of managing Android emulators for testing, ensuring that CI environments and developer machines run tests on identical, version-controlled device configurations.

Core Features & Use Cases

  • Automated Lifecycle Management: Gradle automatically provisions, boots, executes tests on, and tears down emulators, removing the need for manual AVD management.
  • Reproducible Test Matrix: Define device specifications like API levels and system images directly in your build files to ensure consistent test results across all environments.
  • CI Optimization: Utilize Automated Test Device (ATD) images for faster, headless test execution in CI pipelines, significantly reducing build times and resource consumption.

Quick Start

Use the running-tests-on-gradle-managed-devices skill to configure and execute your instrumented test suite on a specific managed emulator defined in your project.

Frequently Asked Questions about running-tests-on-gradle-managed-devices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run reproducible Android instrumented tests in CI/CD pipelines?

Run reproducible Android instrumented tests by provisioning Gradle Managed Devices in CI/CD pipelines, which automatically boots version-controlled emulators and tears them down after execution to ensure environment parity.

What are Gradle Managed Devices and how do they handle emulator lifecycle management?

Gradle Managed Devices handle emulator lifecycle management by automatically provisioning, booting, executing tests on, and tearing down virtual devices, eliminating the need for manual AVD management and ensuring consistent test matrices.

How do I configure automated test sharding on Android emulators?

Configure automated test sharding on Android emulators by defining device specifications and test matrices directly in your Gradle build files, allowing consistent execution across multiple provisioned managed devices.

Can I use Automated Test Device (ATD) images for headless Android test execution?

You can use Automated Test Device (ATD) images for headless Android test execution to significantly reduce build times and resource consumption in CI pipelines while maintaining reproducible test results.

Does running instrumented tests on Gradle Managed Devices work for local development workflows?

Running instrumented tests on Gradle Managed Devices works for local development workflows by ensuring developer machines run tests on identical, version-controlled device configurations defined in build files, matching CI environments.

Why are my Android emulator tests failing inconsistently across different environments?

Android emulator tests fail inconsistently across environments due to manual AVD management and configuration drift; defining reproducible test matrices with Gradle Managed Devices ensures identical API levels and system images everywhere.