In some other testing frameworks I’m used to tagging tests, eg @really_slow, @front_end
And then running different batches of tests, like I might want to set up a build slave to run all the really_slow tests, and might want to run all the tests tagged as front end but none that are marked as really slow.
To run my spock+geb tests in grails at the moment I just run grails test-app functional:
How do I tell it to run a subset?
You could use JUnit suites with
@Category. Or you could use aSpockConfig.groovywith the following contents:Here,
foo.bar.FrontEnd,foo.bar.BackEnd, andfoo.bar.Sloware your own annotations. To activate the configuration file, you have to set aspock.configurationsystem property pointing to it.