PurposeRuns all Grails unit and integration tests and outputs reports. The command will return appropriate response codes for embedding with continuous integration servers.
grails test-app grails test-app Foo grails test-app Foo Bar
grails [environment]* test-app [names]*
StatusFinal- When the test cycle completes
test/integrationdirectories. 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:
The first example will execute a test called
grails test-app Foo grails test-app Foo Bar
FooTests.groovywhilst the second will execute
BarTests.groovyif they exist.
As of Grails 1.2.2, tests can also use the suffix ofYou can also choose to only run the unit or integration tests:
If you only wish to re-run failed tests use the -rerun flag
grails test-app unit: grails test-app integration:
See the Testing section for examples on how to combine the different options to target tests.
grails test-app -rerun