The Cucumber Book: Behaviour-Driven Development for Testers and Developers

Matt Wynne, Aslak Hellesoy, Steve Tooke

  • 出版商: Pragmatic Bookshelf
  • 出版日期: 2017-03-28
  • 定價: $1,500
  • 售價: 9.5$1,425
  • 語言: 英文
  • 頁數: 336
  • 裝訂: Paperback
  • ISBN: 1680502387
  • ISBN-13: 9781680502381
  • 相關分類: Ruby
  • 立即出貨 (庫存=1)

買這商品的人也買了...

相關主題

商品描述

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

商品描述(中文翻譯)

您的客戶希望擁有穩定可靠、無錯誤的軟體,能夠完全符合他們的期望。然而,他們並不總能清楚地表達他們的想法,以便您將其轉化為程式碼。這時,您就需要使用Cucumber:一個測試、溝通和需求工具,集三者於一身。本書中的所有程式碼都已更新至Cucumber 2.4、Rails 5和RSpec 3.5。

將您客戶的奇思妙想表達為一組清晰可執行的規格,讓團隊中的每個人都能閱讀。將這些範例輸入Cucumber,並讓它引導您的開發工作。只需編寫適當的程式碼,就能讓您的客戶滿意。您可以使用Cucumber測試幾乎任何系統或平台。

首先,使用Cucumber的核心功能,並使用Cucumber的Gherkin DSL以純文字描述客戶對系統的行為期望。然後,編寫Ruby程式碼來解釋這些純文字規格,並將其與應用程式進行檢查。接下來,通過一個實例學習更高級的Cucumber技巧,測試異步系統和使用數據庫的系統。本書還提供了一些作者幫助團隊解決的最困難和最常見的情況。憑藉這些模式和技巧,您可以測試使用Capybara和Selenium的Ajax-heavy網絡應用程式、REST網絡服務、Ruby on Rails應用程式、命令行應用程式、遺留應用程式等等。

本書由Cucumber的創始人和Cucumber Ltd.的聯合創始人撰寫,將為您和您的團隊提供使用Cucumber所需的所有知識,讓您能夠自信地開始使用Cucumber。

所需環境:Windows、Mac OS X(帶有XCode)或Linux、Ruby 1.9.2及以上版本、Cucumber 2.4、Rails 5和RSpec 3.5。