问题
Is it necessary to supply the environment as grails test test-app?
回答1:
Grails tests do run in the test environment by default.
In general Grails commands default to dev if not specified, but the test-app command overrides the environment to test if none was specified, and the war command defaults to prod if not specified.
来源:https://stackoverflow.com/questions/25287173/do-grails-tests-run-in-test-environment-by-default