kotest / kotest-intellij-plugin

The official Kotest plugin for Intellij and Android Studio
Apache License 2.0
175 stars 23 forks source link

Cannot run individual test when tests are located in `jvmTest` and KMP library targets `androidJvm` and `jvm` #264

Open Nek-12 opened 1 year ago

Nek-12 commented 1 year ago

Trying to run individual tests (subscpecs) from the IDE plugin fails with this exception:

Cannot locate tasks that match ':core:compileJava' as task 'compileJava' is ambiguous in project ':core'. Candidates are: 'compileDebugAndroidTestJavaWithJavac', 'compileDebugJavaWithJavac', 'compileDebugTestFixturesJavaWithJavac', 'compileDebugUnitTestJavaWithJavac', 'compileReleaseJavaWithJavac', 'compileReleaseTestFixturesJavaWithJavac', 'compileReleaseUnitTestJavaWithJavac'.

This is because the plugin tries to run an ambiguous compile action. (Andriod and Jvm at the same time)

This issue is the result of https://github.com/kotest/kotest-intellij-plugin/issues/245