(Quick Reference)
index-unit-test-controller-index
Purpose
The
index-unit-test-controller-index
generates all the unit tests for the controller
index
method.
Examples
grails index-unit-test-controller-index Person
grails index-unit-test-controller-index "*"
Description
Given at least one domain class, this command creates unit tests for the controller
index
method. The command will generate the following file:
test/unit/{package}/{domainClass}ServiceIndexTests.groovy
Usage:
grails index-unit-test-controller-index [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.