kotest-runner-junit5-jvm:4.1.3 does not respect Gradle's "--tests" filter

Created on 11 Aug 2020  路  4Comments  路  Source: kotest/kotest

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

  • The issue does not occur with version 4.1.2.
  • I did not yet test the junit4 runner.
bug framework

Most helpful comment

Duplicate of #1531
Will be fixed for 4.2.0, due very soon!

All 4 comments

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. :-)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

phuctm97 picture phuctm97  路  5Comments

r3mi picture r3mi  路  7Comments

xerus2000 picture xerus2000  路  11Comments

JoonasC picture JoonasC  路  4Comments

j-h-a picture j-h-a  路  5Comments