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 9Run Your Features Automatically with Guard and Growl

Problem

You’re in the zone, jumping back and forth between adding new scenarios and filling in step definitions. Every time you have to switch to the command line and rerun Cucumber, it disrupts your train of thought. You want Cucumber to run your tests automatically whenever you save a change to one of your project files.

Ingredients

  • Guard,[55] a Ruby library for watching project files

  • Guard::Cucumber,[56] a Cucumber-aware plug-in for Guard

  • A desktop notification system such as Growl for Mac,[57] Growl for Windows,[58] or Snarl for Linux[59] to tell you when the tests are done

  • ruby_gntp,[60] a Ruby library for sending desktop notifications

Solution

Guard is an open source library ...

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