Add the -echoOut switch to grails test-app, this is new in the 1.2 release:
grails test-app -echoOut
There are a number of other useful switches on test-app as well, including:
echo System.err messages:
grails test-app -echoErr
force a clean before running tests (without doing grails clean && grails test-app):
grails test-app -clean
only run unit tests:
grails test-app unit:
only run integration tests:
grails test-app integration:
run in a particular environment:
grails -Dgrails.env=production test-app
run tests only for a particular test class (like com.foo.MyControllerTests),
be sure to leave off the "Tests" suffix:
grails test-app com.foo.MyController
rerun only the tests that failed the last time you ran your tests
grails test-app -rerun
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…