hey all, I’m trying to include certain tests in gr...
# gradle
m
hey all, I’m trying to include certain tests in gradle using
Copy code
test {
  filter {
    includeTestsMatching("*SomeSpecificTest")
  }
}
but it somehow ignores the inclusion and starts to execute everything. The
excludeTestsMatching
seems to work as intended.. I wonder what have I done wrong in here. Can someone point me to the right direction?
b
Not sure why the dsl doesn't work for you, but I've been using --tests cli flag without any issues so far to achieve the same effect
m
yeah the cli flag works actually - it might be something to do with the test engine I’m using. let me debug a bit more
it’s interesting because
includeTestsMatching("com.etc.something.*")
works fine, so there’s something to do which may be outside gradle
b
Gradle assumes junit runner. Anything custom has no guarantees to support all config options.
m
👍 perfect - in that case that means it almost certainly is some engine-related problem
b
If you're using junit5, don't forget to add useJunitPlatform()
Looks like your custom engine did not implement support for that dsl.