kotest / kotest-intellij-plugin

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

Not using gradle when running a simple spec #268

Open pradeepmurugesan opened 1 year ago

pradeepmurugesan commented 1 year ago

Issue

I have gradle selected as runner for my tests. When I run the test file as a whole, then it is using gradle as expected

But when I run an individual spec it uses the kotest runner instead of gradle.

Expected behaviour

Run individual spec using gradle

Screenshot 2023-09-22 at 13 39 37

Here is a screen recording explaining the problem

https://github.com/kotest/kotest-intellij-plugin/assets/528317/a8fa09b9-2ddd-431e-9113-7d1829eebcf2

Here is a sample repository to reproduce the issue:

https://github.com/roughnote/kotest-gradle-sample

Hansanto commented 1 year ago

Due to this issue, I can run whole tests in class (with the arrow at the class name) but not individual tests. Kotest runner cannot find my JDK (No JDK specified), but Gradle runner can.

sksamuel commented 12 months ago

Gradle doesn't support nested tests. So if we do that, it won't actually find the tests you want.

sksamuel commented 3 months ago

This will be the default in 6.0