(Quick Reference)



The create-integration-test command creates an integration test for the given base name.


grails create-integration-test book


Creates an integration test for the given base name. For example for a base name "org.bookstore.book" an integration test called BookTests will be created in the test/integration/org/bookstore directory.

An integration test differs from a unit test in that the Grails environment is loaded for each test execution. Refer to the section on Unit Testing of the user guide for information on unit vs. integration testing.

Note that this command is just for convenience and you can also create integration tests in your favourite text editor or IDE if you choose.


grails create-integration-test [name]

Fired Events:

  • CreatedFile - When the integration test is created