Groovy/Gradle project here that uses Spock for unit testing.
Does Spock and/or Gradle support test suites or named sets of tests? For reasons outside the scope of this question, there are certain Spock tests (Specifications
) that the CI server just can't run.
So it would be great to divide all my app's Spock tests into two groups:
- "
ci-tests
"; and - "
local-only-tests
"
And then perhaps we could invoke them via:
./gradlew test --suite ci-tests
etc. Is this possible? If so, what does the setup/config look like?