tags:

views:

35

answers:

2

I'm finding the feedback look pretty slow when running integration and functional tests in Grails. Is there a way I can run them against a running server instance while I'm writing the tests, to save on server startup time each time they're executed?

Thanks.

A: 

You can use grails interactive which does what you want without starting a server. It starts a JVM and keeps it running and you can use it to run unit and integration tests. Keep in mind that you'll eventually run out of memory and need to restart periodically. See http://grails.org/doc/latest/ref/Command%20Line/interactive.html

Also in 1.3.5 you can run functional tests against a running server. Use the baseUrl attribute described in section 9.3 at http://grails.org/doc/latest/

Burt Beckwith
This works great - I hadn't spotted that command. Going to save me a lot of time over the next few months! Thanks.
Martin Dow
A: 

I'm using Grails 1.3.5 and the EasyB plugin for stories in the context of functional tests.

Take a look at http://padcom13.blogspot.com/2010/10/grails-easyb-and-selenium.html for step-by-step instructions.

Matthias Hryniszak