Pro IOS Testing: Xctest Framework for Ui and Unit Testing
暫譯: 專業 iOS 測試:XCTest 框架的 UI 和單元測試
Tsadok, Avi
- 出版商: Apress
- 出版日期: 2020-10-20
- 售價: $2,350
- 貴賓價: 9.5 折 $2,233
- 語言: 英文
- 頁數: 240
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1484263812
- ISBN-13: 9781484263815
-
相關分類:
UI/UX、Unit Test 單元測試
海外代購書籍(需單獨結帳)
買這商品的人也買了...
-
$250Objective-C 高級編程-iOS 與 OS X 多線程和內存管理
-
$480$408 -
$1,44021st Century C: C Tips from the New School, 2/e (Paperback)
-
$680$537 -
$550$495
相關主題
商品描述
A few years ago, tests on mobile platforms were not very popular. It wasn't a technical constraint, more a cultural one. But these days it's a crucial skill set, especially when projects become big and hard to maintain. This book shows you how to set up a testing target in XCode unit tests. You'll learn how to write unit tests properly and incorporate concepts like spies and mocks and code coverage. You'll also learn the philosophy behind the architecture of UI tests, and how to mock network and DB layers in testing. Write unbreakable UI tests performance tests, as well. And learn the difference between integration tests and snapshot testing.
This book will show you how to maintain code that's not only bug-free but will also remain high quality over time and maintainable while you make changes and refactors during an app's life. Testing in all its aspects is the best way of maintaining iOS projects to run fast and reliably long after you've released them.
Many iOS developers working today lack an understanding of the advantages of testing, and might be unfamiliar with tools that make the job easier, such as XCTest framework. With Pro iOS Testing you'll see how to develop and test apps that work and stay working for a long time.
What You'll Learn
- Set up a stable testing system
- Extend an app's lifetime with testing before release
- Incorporate testing into your everyday development routine
- Write unbreakable UI tests performance tests
- Understand the difference between integration tests and snapshot testing
Who This Book Is ForProfessional iOS developers with extensive experience in the basics of building apps.
商品描述(中文翻譯)
探索 iOS 中單元測試的工具,以及如何在測試驅動的環境中工作。本書揭示了測試是任何 iOS 開發者工具組中至關重要的能力,也是 iOS 面試的最低要求。
幾年前,移動平台上的測試並不流行。這並不是技術上的限制,而更多是文化上的問題。但如今,這已成為一項關鍵技能,特別是當專案變得龐大且難以維護時。本書將教你如何在 XCode 單元測試中設置測試目標。你將學會如何正確編寫單元測試,並融入間諜(spies)、模擬(mocks)和代碼覆蓋率等概念。你還將了解 UI 測試架構背後的哲學,以及如何在測試中模擬網絡和數據庫層。編寫不易破壞的 UI 測試和性能測試。此外,還將學習集成測試和快照測試之間的區別。
本書將向你展示如何維護不僅無錯誤且隨著時間推移仍能保持高品質的代碼,並在應用程序的生命週期中進行變更和重構時保持可維護性。測試的各個方面是維護 iOS 專案的最佳方式,使其在發布後仍能快速且可靠地運行。
許多當今的 iOS 開發者對測試的優勢缺乏了解,並可能不熟悉使工作更輕鬆的工具,例如 XCTest 框架。通過《Pro iOS Testing》,你將看到如何開發和測試能夠長期運行的應用程序。
你將學到的內容:
- 設置穩定的測試系統
- 在發布前通過測試延長應用程序的生命週期
- 將測試融入日常開發流程
- 編寫不易破壞的 UI 測試和性能測試
- 理解集成測試和快照測試之間的區別
本書適合對象:
具有豐富應用程序構建基礎知識的專業 iOS 開發者。
作者簡介
Avi Tsadok is an accomplished iOS Developer with almost a decade of experience. He currently heads mobile developemnt at Any.do, a leading productivity app. He's also a regular contributor to "Better Programming" and has an active presence on Medium. Having written many iOS articles, he's decided to combine his passion for writing and developing by writing his first book.
作者簡介(中文翻譯)
Avi Tsadok 是一位成就卓越的 iOS 開發者,擁有近十年的經驗。他目前負責 Any.do 的行動開發,這是一款領先的生產力應用程式。他也是「Better Programming」的定期貢獻者,並在 Medium 上活躍。由於撰寫了許多 iOS 文章,他決定將自己對寫作和開發的熱情結合,撰寫他的第一本書。