bazelbuild / intellij

IntelliJ plugin for Bazel projects
https://ij.bazel.build/
Apache License 2.0
764 stars 304 forks source link

[Android Studio] `android_instrumentation_test` test button not working on Kotlin test targets #2318

Open ThomasCJY opened 3 years ago

ThomasCJY commented 3 years ago

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

sgowroji commented 9 months ago

Duplicate #2613