intellij
intellij copied to clipboard
[Android Studio] `android_instrumentation_test` test button not working on Kotlin test targets
Background IDE Test Run configuration button doesn't work if android instrumentation test is written in kotlin.
The root cause is that KotlinTestContextProvider
only handles kotlin tests, not android tests, and AndroidTestContextProvider
only handles java android tests, but not kotlin tests. We need a solution to handle both of them at the same time.
Proposed Fix
My proposed fix is https://github.com/bazelbuild/intellij/pull/2319. After the fix, I verified the test button works for android_instrumentation_test
Duplicate #2613