junit-team/junit-examples

build.gradle.kts and tag expressions

Closed this issue · 2 comments

its not easy to find out how to run all tests without a tag, plus the ones with a tag flaky, with build.gradle.kts could you add an example or point to one?

Have you tried using the tag expression none() | flaky?

Here's a complete example that should work:

tasks.test {
    useJUnitPlatform {
        includeTags("none() | flaky")
    }
}

Please let us know, if it doesn't.