(Quick Reference)





grails test-app
grails test-app Foo
grails test-app Foo Bar



grails <<environment>>* test-app <<names>>* [-unit|-integration]

Fired Events:

Executes the Grails unit and integration tests located in the src/test/groovy and src/integration-test/groovy directories. By default all tests are executed, but you can specify the names of the tests (without the "Tests" or other test type suffix) as argument to the command:

grails test-app *Foo*
grails test-app *Foo* *Bar*

The first example will execute a test called FooSpec.groovy whilst the second will execute FooSpec.groovy and BarSpec.groovy if they exist.

The task of finding tests that match the pattern you provide is passed to Gradle. Take a look at the section in their docs titled Test filtering for more information.


grails test-app -unit
grails test-app -integration


grails test-app -rerun
