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

Not using gradle when running a simple spec

Open pradeepmurugesan opened this issue 2 years ago • 3 comments

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

pradeepmurugesan avatar Sep 22 '23 12:09 pradeepmurugesan

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.

Hansanto avatar Nov 03 '23 18:11 Hansanto

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

sksamuel avatar Nov 19 '23 21:11 sksamuel

This will be the default in 6.0

sksamuel avatar Aug 12 '24 01:08 sksamuel

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 26 '25 14:04 stale[bot]

Would it be possible to open an issue on gradle's side to request such a feature? Or is there already a feature request for that? I would do it, but I don't really know what to request exactly.

jgrnrt avatar Oct 23 '25 14:10 jgrnrt