Closed tribbloid closed 3 years ago
Sorry, I think the underlying ScalaTest runner doesn't support this form of filter.
The expected way of filtering is to pass the name of a test - do you have a real world example that you want to support please?
I'm not certain of the above users use case, but for my purpose I want to run only specific folders. We have different tests depending on the environment under test so all the tests are in the same module but sorted by folders. A good example would be sbt's testOnly command
./sbt "testOnly **.specs.fullstack.*
So in this case sbt would run all of the tests in our 'fullstack' folder. In moving over to gradle I have found that trying to implement similar test cases through custom tasks in my build.gradle either runs no tests or all of them
Nevermind, of course not 5 minutes after writing this I found that
suite 'specs.fullstack.*'
works where include 'specs.fullstack.*'
failed
ok - please can we close this issue?
Seems reasonable to me but I don't know if my fix is true for the original poster
A simple example:
The following command should be equivalent, however:
So what should I do to activate this feature?