organizing-test-source-sets
CommunityPut every Android test in the right place
Software Engineering#android-testing#instrumented-tests#source-sets#robolectric#testimplementation#androidtestimplementation#sharedtest
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 whendebugImplementationis 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-styleandroidHostTest/androidDeviceTestlayouts.
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 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: 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.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.