## 2.8 Testing an Application

The `create-*` commands in Grails automatically create integration tests for you within the `test/integration` directory. It is of course up to you to populate these tests with valid test logic, information on which can be found in the section on Testing. However, if you wish to execute tests you can run the test-app command as follows:

    grails test-app

Grails also automatically generates an Ant `build.xml` which can also run the tests by delegating to Grails' test-app command:

    ant test

This is useful when you need to build Grails applications as part of a continuous integration platform such as CruiseControl.