This blog has been archived. Our writing has moved to makandra cards.
The blog of , a Ruby on Rails development team

A gentler Cucumber Factory

Creating database records for a Cucumber scenario is painful. It involves writing a trillion steps for every model class and attribute in your app. That's why we released Cucumber Factory which does all the heavy lifting for you.

However, a common complaint with generic factory steps was that they grab too much of Cucumbers global pattern namespace. You could never again write a step definition that starts with "Given there is a…" because Cucumber would complain about ambiguous step patterns.

With the new Cucumber Factory 1.5.0 this is no longer something you need to worry about. Cucumber Factory now stays silently in the background, always preferrring your handwoven definitions. Only if none of your own step definitions match, Cucumber Factory's automagic implementation kicks in.

This also means that you can now add Cucumber Factory to your existing project without changing behavior.

Check out the new version on Github.

Growing Rails Applications in Practice
Check out our e-book:
Learn to structure large Ruby on Rails codebases with the tools you already know and love.

Recent posts

Our address:
makandra GmbH
Werner-von-Siemens-Str. 6
86159 Augsburg
Germany
Contact us:
+49 821 58866 180
info@makandra.de
Commercial register court:
Augsburg Municipal Court
Register number:
HRB 24202
Sales tax identification number:
DE243555898
Chief executive officers:
Henning Koch
Thomas Eisenbarth