Test-Driven Development in Swift: Compile Better Code with Xctest and Tdd
暫譯: Swift中的測試驅動開發:使用XCTest和TDD編寫更優質的代碼
Gio Lodi
- 出版商: Apress
- 出版日期: 2021-07-02
- 售價: $1,575
- 貴賓價: 9.5 折 $1,496
- 語言: 英文
- 頁數: 286
- 裝訂: Paperback
- ISBN: 1484270010
- ISBN-13: 9781484270011
-
相關分類:
Apple Developer、TDD 測試導向開發
立即出貨 (庫存=1)
買這商品的人也買了...
-
$480$408 -
$940$700 -
$620$527 -
$880$695 -
$690$538 -
$720$562 -
$520$406 -
$620$484
相關主題
商品描述
Leverage Swift to practice effective and efficient test-driven development (TDD) methodology. Software testing and TDD are evergreen programming concepts--yet Swift developers haven't widely adopted them. What's needed is a clear roadmap to learn and adopt TDD in the Swift world. Over the past years, Apple has invested in XCTest and Xcode's testing infrastructure, making testing a new top priority in their ecosystem. Open-source libraries such as Quick and Nimble have also reached maturity. The tools are there. This book will show you how to wield them.
TDD has much more to offer than catching bugs. With this book, you'll learn a philosophy for building software. TDD enables engineers to solve problems incrementally, writing only as much code as necessary. By decomposing big problems into small steps, you can move along at a fast pace, always making visible progress.
Participate in the test-driven development journey by building a real iOS application and incorporating new concepts through each chapter. The book's concepts will emerge as you figure out ways to use tests to drive the solutions to the problems of each chapter. Through the TDD of a single application, you'll be introduced to all the staples and advanced concepts of the craft, understand the trade offs each technique offers, and review an iterative process of software development.
Test-Driven Development in Swift provides the path for a highly efficient way to make amazing apps.
What You'll Learn
- Write tests that are easy to maintain
- Look after an ever-growing test suite
- Build a testing vocabulary that can be applied outside the Swift world
- See how Swift programming enhances the TDD flow seen in dynamic languages
- Discover how compiler errors can provide the same helpful guidance as failing tests do
Who This Book Is For
Mid-level developers keen to write higher quality code and improve their workflows. Also, developers that have already been writing tests but feel they are not getting the most out of them.
商品描述(中文翻譯)
利用 Swift 實踐有效且高效的測試驅動開發(TDD)方法論。軟體測試和 TDD 是永恆的程式設計概念,然而 Swift 開發者尚未廣泛採用這些概念。所需的是一條清晰的路線圖,以便在 Swift 環境中學習和採用 TDD。在過去幾年中,Apple 投資於 XCTest 和 Xcode 的測試基礎設施,使測試成為其生態系統中的新優先事項。像 Quick 和 Nimble 這樣的開源庫也已經成熟。工具已經到位。本書將向您展示如何使用這些工具。
TDD 提供的價值遠不止於捕捉錯誤。通過本書,您將學習到一種構建軟體的哲學。TDD 使工程師能夠逐步解決問題,只編寫必要的程式碼。通過將大問題分解為小步驟,您可以快速推進,始終保持可見的進展。
通過構建一個真正的 iOS 應用程式,參與測試驅動開發的旅程,並在每一章中融入新概念。隨著您找到使用測試來驅動每章問題解決方案的方法,本書的概念將逐漸浮現。通過對單一應用程式的 TDD,您將接觸到所有基本和進階的技術概念,理解每種技術所提供的權衡,並回顧軟體開發的迭代過程。
《Test-Driven Development in Swift》提供了一條高效的路徑來製作驚人的應用程式。
您將學到的內容:
- 編寫易於維護的測試
- 照顧不斷增長的測試套件
- 建立可應用於 Swift 以外的測試詞彙
- 了解 Swift 程式設計如何增強在動態語言中看到的 TDD 流程
- 發現編譯器錯誤如何提供與失敗測試相同的有用指導
本書適合的讀者:
中階開發者希望編寫更高品質的程式碼並改善工作流程。此外,已經在編寫測試但感覺未能充分利用它們的開發者。
作者簡介
Gio Lodi spent the past decade writing tests. He began with full-stack web development before moving into iOS programming and, more recently, into mobile infrastructure engineering. Ruby on Rails introduced him to the TDD world, and he fell in love with the fast-paced feedback loop. Any big problem could be decomposed in smaller and smaller parts until it got to an achievable size. Due to the lack of tools he first encountered moving into the Apple ecosystem, Gio researched and experimented with testing strategies and tools document in an ongoing project that catalogued on his blog and in talks and workshops at various industry conferences.
作者簡介(中文翻譯)
Gio Lodi 在過去十年中專注於編寫測試。他最初從全端網頁開發開始,然後轉向 iOS 程式設計,最近又進入了行動基礎設施工程。Ruby on Rails 讓他接觸到了測試驅動開發(TDD)的世界,他愛上了快速反饋迴圈。任何大型問題都可以被分解成越來越小的部分,直到達到可實現的大小。由於在進入 Apple 生態系統時遇到的工具不足,Gio 研究並實驗了測試策略和工具,並在他的部落格以及各種行業會議的演講和工作坊中記錄了一個持續進行的專案。