create-unit-testcommand creates a unit test for the given base name.
grails create-unit-test org.bookstore.book
DescriptionCreates a unit test for the given base name. For example for a base name
org.bookstore.bookan unit test called
BookTestswill be created in the
test/unit/org/bookstoredirectory.A unit test differs from an integration test in that the Grails environment is not loaded for each test execution and it is left up to you to perform the appropriate mocking using GroovyMock or a Mock library such as EasyMockRefer 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.Usage:
grails create-unit-test [name]
CreatedFile- When the unit test is created