I have written a simple test case class and placed it in the default test directory for Android Studio: \"src/androidTest\". I\'ve created an Android Tests build configurati
The package structure under the androidTest/java directory needs to exactly parallel the structure under the main/java directory.
My problem above was that the package structure under main was com.mydomain.myapp.subpackage and the directory structure under androidTest was com.mydomain.myapp.subpackage.somethingelse.
Once the package structures matched, the tests were discovered and executed flawlessly.