Saturday, February 2, 2008

debugging grails unit tests in eclipse

found this in Groovy In Action page 528
Select Run -> Run, and create a new Java Application configuration. Set the
Project to be your current project, and select groovy.util.GroovyTestSuite as
the Main class.
Next, click the Arguments tab; in the Program Arguments box, include the
path to your Groovy script, as shown in figure 14.2.

It works! One strange thing is that the console view shows compiling ... which looks like it's not done compiling. I think that's because of the dynamic nature of groovy.

Just step and it looks like it works!

For a grails app, In the arguments box put path as test/integration/ or whatever path filename is.