Grails functional testing with Spock & Geb

Finally I could make the Grails’ functional testing work with Geb and Spock plugin.

I follow the sample code from GitHub. But in the GebConfig, I change the default driver to Firefox, as it is the requirement of the project.

Update: Finally I could make it works, after several discussion with the plugin creator.

You can check the documentation here. After it prompts “command:_”, type in:

-Dserver.port=%DIFFERENT_PORT_NUMBER% all

 

The problem is I still couldn’t make use of the plugin. I don’t know if it’s a bug, or there’s something missing in my code. Meanwhile, I’ll use normal testing

grails test-app -functional

Advertisements
This entry was posted in Closed Issue, Grails Development and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s