-1

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

2
  • 1
    if it helps,there is a functional tests plugin -> compile "org.grails.plugins:functional-test-development:0.9.4" Commented Dec 22, 2015 at 13:54
  • Thank you. I got it by adding some property in idea.iml file as i am using intellij Commented Dec 22, 2015 at 14:34

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.