Search code examples
grailsgrails-pluginwebtest

Performance issue with webtest and grails


I have read the documentation for Grails and Webtest in this site:

http://www.grails.org/plugin/webtest

And it's very unupdated. Most of the scripts listed there doesn't work.

I am looking a way to run a working alternative of -nostart listed there.

This is because it's very slow to rerun tests. Or maybe a way to run webtests from outside of Grails

Can you give me any pointer?

Thanks in advance


Solution

  • The webtest plugin changed from version 1.3 to use the new hooks provided by the grails test-app script. Unfortunately one piece of functionality not provided by test-app is the -nostart option.

    You could try using

    grails interactive
    

    then

    test-app -functional
    

    hitting enter should re-run the functional tests without doing a complete restart of grails.

    I've also removed the -nostart option from the documentation. All the other documentation should be up to date. What other scripts did not work?

    You can raise issues here: http://jira.codehaus.org/browse/GRAILSPLUGINS/component/12994