Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not using gradle when running a simple spec #268

Open
pradeepmurugesan opened this issue Sep 22, 2023 · 3 comments
Open

Not using gradle when running a simple spec #268

pradeepmurugesan opened this issue Sep 22, 2023 · 3 comments

Comments

@pradeepmurugesan
Copy link

pradeepmurugesan commented Sep 22, 2023

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

kotest-gradle-sample.mp4

Here is a sample repository to reproduce the issue:

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

@Hansanto
Copy link

Hansanto commented Nov 3, 2023

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
Copy link
Member

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

@sksamuel
Copy link
Member

This will be the default in 6.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants