TestCase class not found by Android Studio

You need to check “run” configuration.

If you are going to run tests from androidTest folder, you should choose configuration under Android Instrumented Test, and not the junit.

Run(Top tool window) / Edit configurations…

enter image description here

Leave a Comment