0

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:

  1. Adding

    sourceSets { androidTest.setRoot('src/androidTest') }

to the Android block in my project level build.gradle.

  1. 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?

Shubham Jain
  • 16,610
  • 15
  • 78
  • 125
oldsport76
  • 387
  • 2
  • 10

0 Answers0