SourceSet SharedTest Not Working in Android Studio Chipmunk? Use TestFixtures as Solution
When we create a test code, we often find duplicate code for the local test (test) and instrumentation test (androidTest). Alternatively, we can create a common test folder where we can store files, classes, and functions which will be available for local and instrumentation tests. Usually, we call it sharedTest pattern.