问题
I am trying to create functional tests in grails. I have integration and unit tests. But i am unable to create functional tests directory. I am using grails 2.4.5 version
回答1:
Grails 2 does not ship with functional testing capabilities. Noted in the documentation here. Using a plugin for functional testing is the recommended practice.
Grails does not ship with any support for writing functional tests directly, but there are several plugins available for this.
Canoo Webtest - http://grails.org/plugin/webtest
G-Func - http://grails.org/plugin/functional-test
Geb - http://grails.org/plugin/geb
Selenium-RC - http://grails.org/plugin/selenium-rc
WebDriver -http://grails.org/plugin/webdriver
Consult the documentation for each plugin for its capabilities.
Grails 3 does ship with the ability to create functional testing using the Geb framework as documented here:
Grails by default ships with support for writing functional tests using the Geb framework. To create a functional test you can use the create-functional-test command which will create a new functional test
来源:https://stackoverflow.com/questions/34414536/how-to-create-functional-test-directory-in-grails