I am working with an Android project where the androidTest package has been deleted from src and there is no package suffixed with '(androidTest)' in the project structure.
I am trying to create an androidTest package as I need to run instrumentation tests.
I have already tried the following:
Adding
sourceSets { androidTest.setRoot('src/androidTest') }
to the Android block in my project level build.gradle.
- Actually creating a folder named 'androidTest' in my file explorer and syncing with what I added in 1.
Both approaches fail, unfortunately. I am not sure how else I can configure Android Studio to know what folder I want to write and run instrumentation tests from. Any ideas how to do this?