android-testing

Coordinate JVM unit, instrumented, and Compose UI tests for Android projects.

16|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/JCE-Joshhh77/JCE-Opencode-Tools --skill android-testing-jce-joshhh77
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: android-testing
Source: https://github.com/JCE-Joshhh77/JCE-Opencode-Tools/tree/main/config/skills/android-testing
Command: npx skills add https://github.com/JCE-Joshhh77/JCE-Opencode-Tools --skill android-testing-jce-joshhh77

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Validating Android code changes requires coordinating multiple test types (unit, instrumented, and UI tests) to ensure regressions are caught early.

Core Features & Use Cases

  • Supports JVM unit tests, instrumented tests, Compose UI tests, and Room migration tests.
  • Recommends test strategies such as testDebugUnitTest for logic paths and connectedDebugAndroidTest when platform behavior matters.
  • Provides guidance for planning, executing, and verifying test results across Android ecosystems.

Quick Start

Run the Android test strategy to validate the latest changes across JVM, instrumented, and UI tests.

Frequently Asked Questions about android-testing

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

FAQPage Schema
How do I coordinate JVM unit tests and instrumented tests for Android?

To coordinate Android tests, you need a strategy that selects the right test type for each code path. Use JVM unit tests for logic validation and instrumented tests when platform behavior matters, ensuring full coverage across devices.

When should I use connectedDebugAndroidTest instead of testDebugUnitTest?

Use testDebugUnitTest to validate pure logic paths on the JVM, and switch to connectedDebugAndroidTest when you need to verify platform-specific behavior across physical devices or emulators to catch device-level regressions.

How do I write Compose UI tests for my Android application?

Compose UI tests validate your user interface components by executing them within the Android test ecosystem. A coordinated strategy helps plan, execute, and verify these UI tests alongside your unit and instrumented tests.

Does Robolectric work for running Android unit tests on the JVM?

Robolectric is supported for running Android unit tests directly on the JVM. It allows you to execute tests that normally require an Android environment without needing a physical device or emulator setup.

What is the best way to test Room database migrations in Android?

Testing Room migrations requires validating database schema changes across versions. A coordinated test strategy includes verifying these migrations to ensure data integrity is maintained when users update your application.

How do I test coroutines in my Android project?

Testing coroutines in Android requires validating asynchronous code paths across your project. A coordinated strategy integrates coroutine testing within your JVM unit tests and instrumented tests to verify concurrent logic safely.