$ grace create-functional-test Post
| Created src/integration-test/groovy/com/example/PostSpec.groovy
4 Usage
Version: 6.3.0
4 Usage
Grace Geb plugin provides a Grace Script Command create-functional-test to create Geb functional test for your application.
.src/integration-test/groovy/com/example/PostSpec.groovy
@Integration
@Rollback
class PostSpec extends GebSpec {
def setup() {
}
def cleanup() {
}
void "test the homepage title"() {
when: "The homepage is visited"
go '/'
then: "The title is correct"
title == "Welcome to Grace"
}
}
you can check The Book Of Geb to learn how to write the Geb functional tests.