organizing-test-source-sets

Community

Put every Android test in the right place

Authorskydoves
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It resolves the confusion and build/run failures caused by misplacing Android tests into the wrong source sets or Gradle configurations, especially around src/test/ vs src/androidTest/, src/sharedTest/, and the AGP 7.2+ Compose-style androidHostTest / androidDeviceTest split.

Core Features & Use Cases

  • Source set decisioning: Chooses the correct location for JVM host tests (src/test/) vs instrumented device tests (src/androidTest/) based on the user’s test type.
  • Gradle configuration mapping: Ensures the right dependency scope is used for each source set, including testImplementation, androidTestImplementation, and when debugImplementation is required for test manifests.
  • AGP 7.2+ migration guidance: Explains why src/sharedTest/ source-set sharing breaks and outlines safer alternatives such as splitting into sub-modules or using KMP-style androidHostTest / androidDeviceTest layouts.

Quick Start

Use the organizing-test-source-sets skill to tell me where my test should live and which Gradle dependencies it should use when I’m moving from src/sharedTest to androidHostTest/androidDeviceTest after AGP 7.2.

Dependency Matrix

Required Modules

None required

Components

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: organizing-test-source-sets
Download link: https://github.com/skydoves/android-testing-skills/archive/main.zip#organizing-test-source-sets

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.