The Cucumber Book: Behaviour-Driven Development for Testers and Developers, 2nd Edition Front Cover

The Cucumber Book: Behaviour-Driven Development for Testers and Developers, 2nd Edition

Description

Your customers want rock-solid, bug-free software that does exactly what they expect it to do. Yet they can’t always articulate their ideas clearly enough for you to turn them into code. You need Cucumber: a testing, communication, and requirements tool-all rolled into one. All the code in this book is updated for Cucumber 2.4, Rails 5, and RSpec 3.5.
Express your customers’ wild ideas as a set of clear, executable specifications that everyone on the team can read. Feed those examples into Cucumber and let it guide your development. Build just the right code to keep your customers happy. You can use Cucumber to test almost any system or any platform.
Get started by using the core features of Cucumber and working with Cucumber’s Gherkin DSL to describe-in plain language-the behavior your customers want from the system. Then write Ruby code that interprets those plain-language specifications and checks them against your application. Next, consolidate the knowledge you’ve gained with a worked example, where you’ll learn more advanced Cucumber techniques, test asynchronous systems, and test systems that use a database. Recipes highlight some of the most difficult and commonly seen situations the authors have helped teams solve. With these patterns and techniques, test Ajax-heavy web applications with Capybara and Selenium, REST web services, Ruby on Rails applications, command-line applications, legacy applications, and more.
Written by the creator of Cucumber and the co-founders of Cucumber Ltd., this authoritative guide will give you and your team all the knowledge you need to start using Cucumber with confidence.
What You Need:
Windows, Mac OS X (with XCode) or Linux, Ruby 1.9.2 and upwards, Cucumber 2.4, Rails 5, and RSpec 3.5

Table of Contents

Part I. Cucumber Fundamentals
Chapter 1. Why Cucumber?
Chapter 2. First Taste
Chapter 3. Gherkin Basics
Chapter 4. Step Definitions: From The Outside
Chapter 5. Expressive Scenarios
Chapter 6. When Cucumbers Go Bad
Part II. A Worked Example
Chapter 7. Step Definitions: On The Inside
Chapter 8. Support Code
Chapter 9. Dealing With Message Queues And Asynchronous Components
Chapter 10. Databases
Part III. Cucumber Applied
Chapter 11. The Cucumber Command-Line Interface
Chapter 12. Testing A Rest Web Service
Chapter 13. Adding Tests To A Legacy Application
Chapter 14. Bootstrapping Rails
Chapter 15. Using Capybara To Test Ajax Web Applications
Chapter 16. Testing Command-Line

To access the link, solve the captcha.