Skip to content

Development Tips

syntheticzero edited this page Feb 13, 2015 · 1 revision

Running Tests

Tip for speeding up running tests: run them in Grails interactive mode. This will skip the setup time (a minute or more) and jump straight to running the tests.

Navigate to the home directory of your app from a command line and type:

grails

To run a test, use:

test-app ClassName

The tests will take a while the first time you run them, but subsequent runs will be fast.

To view the last test report:

open test-report

Once we have upgraded to Grails 2.3, you will be able to debug tests by using

test-app [args] --debug-fork

Clone this wiki locally