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 ...

Get ATDD by Example: A Practical Guide to Acceptance Test-Driven Development 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.