When I run:
./gradlew :mysubproject:test --tests MyTest
in my build.gradle.kts
I’ve got:
tasks.test {
filter {
excludeTestsMatching("mysubproject.excludeme.*")
}
println(this.filter.excludePatterns)
println(this.filter.includePatterns)
}
The filter.excludePatterns
shows the exclude pattern I set with the excludeTestsMatching
, but filter.includePatterns
does not include MyTest
(the include pattern I supplied as a command-line argument). How can I access that include pattern inside my build.gradle.kts
?