(Quick Reference)
save-unit-test-controller-save
Purpose
The
save-unit-test-controller-save
generates all the unit tests for the controller
save
method.
Examples
grails save-unit-test-controller-save Person
grails save-unit-test-controller-save "*"
Description
Given at least one domain class, this command creates unit tests for the controller
save
method. The command will generate the following file:
test/unit/{package}/{domainClass}ServiceSaveTests.groovy
Usage:
grails save-unit-test-controller-save [domainClass]
Arguments:
domainClass
- Either a domain class name (case-sensitive) without its package or a wildcard (*). If you specify the wildcard the artifacts will be generated for all domain classes.