android-unit-testing
Installation
SKILL.md
Scope
- JVM unit tests (Gradle
test*UnitTest) first. - Instrumented tests are out of scope unless explicitly requested.
Preconditions
- Use the repo's Gradle Wrapper (
./gradlew). - Prefer deterministic commands; avoid “try random flags”.
Step-by-step
1) Discover test tasks
- List modules and test tasks:
./gradlew tasks --all | grep -E "test.*UnitTest|:test"
- Identify common tasks:
:app:testDebugUnitTesttestDebugUnitTest(root aggregation if present)- flavors:
test<Flavor><BuildType>UnitTest