kotest-intellij-plugin icon indicating copy to clipboard operation
kotest-intellij-plugin copied to clipboard

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

Open Nek-12 opened this issue 2 years ago • 0 comments

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

Nek-12 avatar Aug 17 '23 10:08 Nek-12