Recipe 19 | Test a Grails App Using grails-cucumber |
Problem
You’re writing a web app using the Grails framework, and you want to use Cucumber to test it.
Ingredients
-
Grails,[119] a web framework written in the Groovy language for the JVM
-
grails-cucumber,[120] a testing plug-in that adds Cucumber support to Grails
-
Cucumber-JVM,[121] the pure-Java implementation of Cucumber that makes grails-cucumber possible
Solution
Groovy is a programming language that aims to bring some of Ruby’s expressiveness to the Java runtime. The syntax is quite flexible; you can often paste Java code directly into a .groovy file and then gradually add Groovy features as you go along.
Grails is a Rails-like web framework written in Groovy. In this recipe, we’re going to build ...
Get Cucumber Recipes now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.