iOS Code Testing: Test-Driven Development and Behavior-Driven Development with Swift
暫譯: iOS 代碼測試:使用 Swift 的測試驅動開發與行為驅動開發

Abhishek Mishra

  • 出版商: Apress
  • 出版日期: 2017-06-30
  • 售價: $2,610
  • 貴賓價: 9.5$2,480
  • 語言: 英文
  • 頁數: 440
  • 裝訂: Paperback
  • ISBN: 1484226887
  • ISBN-13: 9781484226889
  • 相關分類: Apple DeveloperTDD 測試導向開發
  • 海外代購書籍(需單獨結帳)

商品描述

Put into motion practical examples to master Test-Driven Development (TDD) and acceptance testing in Swift.

This book uses a pragmatic approach to writing well-tested code and provides techniques that can be used to retrofit tests to legacy code bases. You'll be introduced to basic principles of TDD, such as Test First, Red-Green-Refactor, Remove Duplicate code, Dependency Injection, and Single Responsibility. Approaches covered include TDD, behavior-driven development (BDD), UI, and acceptance testing with common standard/open source frameworks. 

iOS Code Testing offers helpful instruction to teach iOS developers to retrospectively fit tests to legacy code, refactor legacy code so as to make the code more testable, install and configure a popular Swift BDD framework, practice BDD with Xcode, and create automated UI tests with Xcode. Additionally, many projects have legacy code bases. Legacy code is often seen as a blocker when it comes to implementing any kind of testing.
 
What You Will Learn
  • Fit test to legacy code retrospectively
  • Install and configure popular Swift BDD frameworks
  • Practice BDD with Xcode
Who This Book Is For

Software practitioners, such as Swift developers and mobile app testers.

商品描述(中文翻譯)

將實際範例付諸實行,以掌握在 Swift 中的測試驅動開發(Test-Driven Development, TDD)和驗收測試。

本書採用務實的方法來編寫經過良好測試的代碼,並提供可以用於為舊代碼庫添加測試的技術。您將了解 TDD 的基本原則,例如先測試(Test First)、紅綠重構(Red-Green-Refactor)、消除重複代碼(Remove Duplicate code)、依賴注入(Dependency Injection)和單一職責原則(Single Responsibility)。涵蓋的方法包括 TDD、行為驅動開發(Behavior-Driven Development, BDD)、用戶界面(UI)和使用常見標準/開源框架的驗收測試。

《iOS 代碼測試》提供有用的指導,教導 iOS 開發人員如何為舊代碼回溯性地添加測試,重構舊代碼以使其更易於測試,安裝和配置流行的 Swift BDD 框架,使用 Xcode 實踐 BDD,並使用 Xcode 創建自動化的 UI 測試。此外,許多項目都有舊代碼庫。舊代碼通常被視為實施任何類型測試的障礙。

您將學到的內容:
- 回溯性地為舊代碼添加測試
- 安裝和配置流行的 Swift BDD 框架
- 使用 Xcode 實踐 BDD

本書適合對象:
軟體從業人員,例如 Swift 開發人員和移動應用測試人員。