(Quick Reference)
create-unit-test-constraints
Purpose
The
create-unit-test-constraints
generates all the unit tests for constraints.
Examples
grails create-unit-test-constraints Person
grails create-unit-test-constraints "*"
Description
Given at least one domain class, this command creates unit tests for all the domain class constraints. The command will generate one file for each class domain property.
Usage:
grails create-unit-test-constraints [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.