How to create functional test directory in grails

此生再无相见时 提交于 2020-01-07 09:25:35

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!