Search code examples
unit-testinggrailsgroovyspockgeb

Using Spock, how do you run a particular feature via the grails command line?


I am running Spock tests for unit and functional tests. Awesome library.

I am wondering how to run a specific feature of a Spock Spec from the grails command line.

I know how to run all spock tests or run a specific spec but I don't know how to run a specific feature.

Thanks!


Solution

  • As Peter Niederwieser mentionned in his comment, this isn't possible with Spock. However, the annotation @IgnoreRest will serve the same purpose. Marking the question answered. Thank you