Skip to Main Content
Cucumber Recipes
book

Cucumber Recipes

by Ian Dees, Matt Wynne, Aslak Hellesoy
February 2013
Intermediate to advanced content levelIntermediate to advanced
272 pages
5h 45m
English
Pragmatic Bookshelf
Content preview from Cucumber Recipes
Recipe 19Test 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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Cucumber Cookbook

Cucumber Cookbook

Shankar Garg
Basiswissen Softwaretest , 6th Edition

Basiswissen Softwaretest , 6th Edition

Andreas Spillner, Tilo Linz
React Cookbook

React Cookbook

David Griffiths, Dawn Griffiths

Publisher Resources

ISBN: 9781941222607Errata