In a mixed Kotlin/Java test source set when using Gradle's --tests filter to selectively execute some non-Kotlin tests, all Kotlin tests get executed as well.
I provided a basic test project that reproduces the issue: stefanneuhaus/kotest-issue
Duplicate of #1531
Will be fixed for 4.2.0, due very soon!
There is a fix included in 4.2.0.RC2 if you want to try that.
4.2.0 final will follow shortly.
@stefanneuhaus
@sksamuel Thank you for the timely reaction. I tried to verify the fix in 4.2.0.RC2 with stefanneuhaus/kotest-issue but failed. Seems like either the bug is not yet fixed or it is no duplicate of #1531.
I tested with the release version 4.2.0: It is actually fixed.
And I double-checked that it is failing with 4.2.0.RC2. Anyway, seems to be fixed -- works for me. :-)
Most helpful comment
Duplicate of #1531
Will be fixed for 4.2.0, due very soon!