Effective Testing with RSpec 3: Build Ruby Apps with Confidence
暫譯: 使用 RSpec 3 進行有效測試:自信構建 Ruby 應用程式
Myron Marston, Ian Dees
- 出版商: Pragmatic Bookshelf
- 出版日期: 2017-10-03
- 售價: $1,140
- 貴賓價: 9.5 折 $1,083
- 語言: 英文
- 頁數: 356
- 裝訂: Paperback
- ISBN: 1680501984
- ISBN-13: 9781680501988
-
相關分類:
Ruby
立即出貨 (庫存 < 3)
買這商品的人也買了...
-
$1,220$1,159 -
$850$808 -
$520$411 -
$1,485$1,411 -
$625Rails 4 Test Prescriptions: Build a Healthy Codebase (Paperback)
-
$356SaaS軟件工程(雲計算時代的敏捷開發)
-
$184軟件測試
-
$580$458 -
$301軟件測試價值提升之路
-
$780$616 -
$450$356 -
$301精通 Nginx, 2/e ( Mastering NGINX, 2/e)
-
$650$507 -
$990Agile Web Development with Rails 5.1
-
$1,750$1,663 -
$500$425 -
$480$379 -
$2,210$2,100 -
$780$616 -
$403App 自動化測試與框架實戰
-
$401松本行弘 編程語言的設計與實現
-
$407圖解 TCP/IP 網絡知識輕鬆入門
-
$520$411 -
$550$429 -
$380$300
商品描述
Build and maintain quality software with RSpec, the popular BDD-flavored Ruby testing framework. This definitive guide from RSpec's lead developer shows you how to use RSpec to drive more maintainable designs, specify and document expected behavior, and prevent regressions during refactoring. Build a project using RSpec to design, describe, and test the behavior of your code-whether you're new to testing tools or an experienced developer.
RSpec has been downloaded more than 40 million times. Find out how to use this influential Ruby testing framework to iteratively develop a project with the confidence that comes from well-tested code. Effective Testing With RSpec 3 guides you through developing a Ruby project with RSpec, and then explores the individual components in more detail.
First, learn the basics of installing and using RSpec. Then, build a real-world JSON API, using RSpec throughout the process to drive a BDD-style outside-in workflow. Apply an effective test strategy to write fast, robust tests that support evolutionary design through refactoring. The rest of the book provides the definitive guide to RSpec's components. Use RSpec::Core's metadata to slice and dice your spec suite in flexible ways. Dig into RSpec::Expectation's matchers, which can be composed in flexible ways to precisely specify expected outcomes and get good failure messages that help you quickly diagnose the problem. Write fast, isolated tests with RSpec::Mocks test doubles while pushing your code toward simpler interfaces.
The authors, with a combined 20 years of automated testing experience, share useful, actionable testing advice that will help you have a fun, productive testing experience.
What You Need:
To follow along with the book, you'll need Ruby 2.1+. The book will guide you through installing RSpec 3 and setting up a new project to use it.
商品描述(中文翻譯)
建立和維護高品質軟體,使用 RSpec 這個流行的 BDD 風格 Ruby 測試框架。這本由 RSpec 首席開發者撰寫的權威指南,將教你如何使用 RSpec 來驅動更具可維護性的設計,指定和記錄預期行為,並在重構過程中防止回歸。無論你是測試工具的新手還是經驗豐富的開發者,都可以使用 RSpec 建立一個專案來設計、描述和測試你的程式碼行為。
RSpec 已經被下載超過 4000 萬次。了解如何使用這個有影響力的 Ruby 測試框架,迭代開發一個專案,並從良好測試的程式碼中獲得信心。《Effective Testing With RSpec 3》將指導你使用 RSpec 開發 Ruby 專案,然後更詳細地探討各個組件。
首先,學習安裝和使用 RSpec 的基本知識。接著,建立一個真實世界的 JSON API,在整個過程中使用 RSpec 來驅動 BDD 風格的外部進入工作流程。應用有效的測試策略,撰寫快速、穩健的測試,以支持通過重構進行的演進設計。本書的其餘部分提供了 RSpec 組件的權威指南。使用 RSpec::Core 的元數據以靈活的方式切割和處理你的測試套件。深入了解 RSpec::Expectation 的匹配器,這些匹配器可以以靈活的方式組合,以精確指定預期結果並獲得良好的失敗訊息,幫助你快速診斷問題。使用 RSpec::Mocks 測試替身撰寫快速、獨立的測試,同時推動你的程式碼朝向更簡單的介面。
作者擁有共計 20 年的自動化測試經驗,分享有用且可行的測試建議,幫助你擁有一個有趣且富有成效的測試體驗。
你需要的:
要跟隨本書,你需要 Ruby 2.1 以上版本。本書將指導你安裝 RSpec 3 並設置一個新的專案來使用它。