O'Reilly logo

ATDD by Example: A Practical Guide to Acceptance Test-Driven Development by Markus Gärtner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix A. Cucumber

In this appendix we will give a brief introduction to Cucumber. For a more in-depth introduction check The RSpec book [CAH+10], the Secret Ninja Cucumber Scrolls [dFAdF10], or the Cucumber website at http://cukes.info. Both books handle more advanced topics such as setup and teardown mechanisms and organization of your feature files.

Cucumber is a behavior-driven development (BDD) test automation tool. That means that you will need to describe your examples using the Given-When-Then format.

Cucumber is based upon Ruby. If you have Ruby installed, run the command gem install cucumber with administrator privileges, and wait for the installation to succeed. If the installation complains about missing dependencies, you may have ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required