https://kotlinlang.org logo
#kotest
Title
# kotest
c

charleskorn

10/18/2021, 4:44 AM
Is Gradle test filtering supported with Kotlin/Native? I’ve tried
./gradlew macosX64Test --tests '*MyTestClass'
and
./gradlew macosX64Test --tests 'MyTestClass'
but in both cases all tests still ran
s

sam

10/18/2021, 4:50 AM
Those args are passed through to junit via gradle but with native tests, my guess is that they're not passed through to the native executor
j

Jim

10/18/2021, 5:01 AM
I'm working on adding something similar in https://github.com/kotest/kotest/pull/2547 since Gradle is limited in its understanding of what a test is
👍🏻 1
c

charleskorn

10/18/2021, 5:13 AM
OK great - so does what you’re working on in that PR @Jim cover the issue that @sam described, or should I open a bug on GitHub?
s

sam

10/18/2021, 5:15 AM
He's adding support directly to kotest for the same thing, so we don't have to rely on gradle's will it or won't it work
j

Jim

10/18/2021, 5:00 PM
Yeah you’ll do something like
./gradlew macosX54Test -Dkotest.filter.specs='*MyTestClass'
I plan to finish it today 🤞
🎉 1
2 Views