Fixed
Status Update
Comments
uc...@google.com <uc...@google.com>
so...@google.com <so...@google.com>
so...@google.com <so...@google.com> #2
TODO: Fix com.android.tools.idea.gradle.project.model.AndroidModuleModel#getTestSourceProviders(java.lang.String, java.lang.String...)
Description
AI-181.5540.7.32.5056338, JRE 1.8.0_152-release-1136-b06x64 JetBrains s.r.o, OS Windows 10(amd64) v10.0 , screens 2560x1440, 2560x1440, 1920x1080
Android Gradle Plugin: 3.2.1
Gradle: 4.6
NDK: from local.properties: (not specified); latest from SDK: (not found);
LLDB: pinned revision 3.1 not found; latest from SDK: (package not found);
CMake: from local.properties: (not specified); latest from SDK: (not found); from PATH: (not found);
IMPORTANT: Please read
I've attached a zip that reproduces the issue along with a README.md + screenshot explaining the bug. Details copied here.
This repo demonstrates a bug in Android Studio. The Android Studion "Android Explorer" does not show test directories for combined flavors.
Please reference:

1. I have set up two flavor dimensions. "consumer" and "mockMode". Each has two flavors. These are consumer="developer|user", mockMode="official|simulated".
2. I have selected the "developerSimulatedDebug" variant.
3. I've checked the source sets that are available and want android tests that are only in the "developerSimulated" variant.
4. I created a non-test class called "Placeholder" in the "developerSimulated" source set to demonstrate that works.
5. I created "ExampleInstrumentedTest2" in the "androidTestDeveloperSimulated" source set but
6. It is not shown in the "Android Explorer" on the left. (This is the bug)