running-tests-on-gradle-managed-devices
CommunityRun instrumented tests on CI-grade emulators
Software Engineering#androidTest#test sharding#android managed devices#gradle instrumentation#ci emulators#atd images#allDevicesCheck
Authorskydoves
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Gradle Managed Devices lets you run instrumented Android tests on a reproducible emulator environment without manually creating, starting, and maintaining AVDs for CI.
Core Features & Use Cases
- Version-controlled emulator provisioning: Define devices with the
android.testOptions.managedDevices { localDevices { create(...) } }DSL so every run uses the same device configuration. - Reliable CI execution: Run generated tasks like
<deviceName>DebugAndroidTest,<groupName>GroupDebugAndroidTest, andallDevicesCheck, while Gradle handles download, boot, test execution, and teardown. - Cheaper CI with ATD images and sharding: Use Automated Test Device (ATD) images (
aosp-atd,google-atd) for headless, faster boots and shard slow suites across managed-device copies for parallelism.
Quick Start
Ask your AI coding agent to set up Gradle Managed Devices in build.gradle.kts with an ATD-based managed device and then run the generated <deviceName>DebugAndroidTest task so CI automatically provisions, boots, tests, and tears down the emulator.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: running-tests-on-gradle-managed-devices Download link: https://github.com/skydoves/android-testing-skills/archive/main.zip#running-tests-on-gradle-managed-devices Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.