Test-Driven iOS Development with Swift 3, 2/e (Paerback)
暫譯: 使用 Swift 3 的測試驅動 iOS 開發(第二版)
Dr. Dominik Hauser
- 出版商: Packt Publishing
- 出版日期: 2016-10-28
- 定價: $1,330
- 售價: 6.0 折 $798
- 語言: 英文
- 頁數: 216
- 裝訂: Paperback
- ISBN: 1787129071
- ISBN-13: 9781787129078
-
相關分類:
Apple Developer、TDD 測試導向開發
立即出貨(限量) (庫存=1)
買這商品的人也買了...
-
$699Swift 3 Game Development - Second Edition
-
$790$672 -
$520$411 -
$540$459 -
$480$408 -
$300$234 -
$720$612 -
$954$906 -
$780$616 -
$474$450 -
$1,750$1,663 -
$880$695 -
$450$355 -
$580$458 -
$780$616 -
$800$632 -
$1,880$1,786 -
$980$735 -
$680$530 -
$620$490 -
$780$616 -
$980$774 -
$680$537 -
$380$300 -
$420$331
相關主題
商品描述
Key Features
- Learn test-driven principles to help you build apps with fewer bugs and better designs
- Become more efficient while working with Swift to move on to your next project faster!
- Implement all of the principles of test-driven development (TDD) in to your daily programming workflow
Book Description
Test-driven development (TDD) is a proven way to find software bugs early. Writing tests before your code improves the structure and maintainability of your apps. In combination with the improved syntax of Swift 3, there is no excuse or writing bad code.
This book will help you understand the process of TDD and how it impacts your apps written in Swift. Through a practical, real-world example app, you’ll start seeing how to implement TDD in context. You will begin with an overview of the TDD workflow and then deep dive into unit testing concepts and code cycles. You will also plan and structure your test driven iOS app, and write tests to drive the development of the view controllers and the helper classes. Next, you’ll learn how to write tests for network code, what CI is and how to set it up using Xcode Server.
Finally, the book will guide you through the next steps to become a testing expert by discussing integration tests, Behavior Driven Development (BDD), open source testing frameworks and UI Tests introduced in Xcode 8.
What you will learn
- Implement TDD in Swift application development
- Find bugs before you enter the code using the TDD approach
- Use TDD to build models, view controllers, and views
- Test network code with asynchronous tests and stubs
- Write code that is a joy to read and to maintain
- Develop functional tests to ensure the app works as planned
- Employ continuous integration to make testing and deployment easier
About the Author
Dr. Dominik Hauser completed his Ph.D. from the University of Heidelberg in Physics. While working as a university professor, he started iOS development in his spare time. His first app on Physics has been an astounding success worldwide. Since then, he turned himself into a full-time iOS developer, crediting number of successful apps to his name. He has been a Swift developer since day one and runs a blog on iOS development, www.swiftandpainless.com.
Table of Contents
- Your First Unit Tests
- Planning and Structuring Your Test-Driven iOS App
- A Test-Driven Data Model
- A Test-Driven View Controller
- Testing Network Code
- Putting It All Together
- Code Coverage and Continuous Integration
- Where to Go from Here
商品描述(中文翻譯)
**主要特點**
- 學習測試驅動原則,幫助您構建更少錯誤和更好設計的應用程式
- 在使用 Swift 時提高效率,讓您更快進入下一個專案!
- 將所有測試驅動開發(TDD)的原則實施到您的日常程式設計工作流程中
**書籍描述**
測試驅動開發(TDD)是一種有效的方式,可以及早發現軟體錯誤。在編寫程式碼之前撰寫測試可以改善應用程式的結構和可維護性。結合 Swift 3 改進的語法,沒有理由寫出糟糕的程式碼。
本書將幫助您理解 TDD 的過程以及它如何影響您用 Swift 編寫的應用程式。通過一個實際的、現實世界的範例應用程式,您將開始看到如何在上下文中實施 TDD。您將從 TDD 工作流程的概述開始,然後深入了解單元測試概念和程式碼循環。您還將計劃和結構您的測試驅動 iOS 應用程式,並撰寫測試以驅動視圖控制器和輔助類別的開發。接下來,您將學習如何為網路程式碼撰寫測試,什麼是 CI 以及如何使用 Xcode Server 設置它。
最後,本書將指導您通過討論整合測試、行為驅動開發(BDD)、開源測試框架和在 Xcode 8 中引入的 UI 測試,來成為測試專家。
**您將學到的內容**
- 在 Swift 應用程式開發中實施 TDD
- 使用 TDD 方法在編寫程式碼之前找到錯誤
- 使用 TDD 構建模型、視圖控制器和視圖
- 使用非同步測試和存根測試網路程式碼
- 撰寫易於閱讀和維護的程式碼
- 開發功能測試以確保應用程式按計劃運作
- 採用持續整合以簡化測試和部署
**關於作者**
**Dr. Dominik Hauser** 於海德堡大學獲得物理學博士學位。在擔任大學教授期間,他開始在空閒時間進行 iOS 開發。他的第一款物理學應用程式在全球取得了驚人的成功。從那時起,他轉型為全職 iOS 開發者,並為自己創造了多款成功的應用程式。他自第一天起就是 Swift 開發者,並經營一個關於 iOS 開發的部落格,網址是 www.swiftandpainless.com。
**目錄**
1. 您的第一個單元測試
2. 計劃和結構您的測試驅動 iOS 應用程式
3. 測試驅動的資料模型
4. 測試驅動的視圖控制器
5. 測試網路程式碼
6. 將所有內容整合在一起
7. 程式碼覆蓋率和持續整合
8. 接下來的步驟