Modularizing Legacy Projects Using TDD: Test-Driven Development with XCTest for iOS
暫譯: 使用 TDD 模組化遺留專案:iOS 的 XCTest 測試驅動開發

El-Morabea, Khaled, El-Garem, Hassaan

  • 出版商: Apress
  • 出版日期: 2021-10-26
  • 定價: $1,700
  • 售價: 8.0$1,360
  • 語言: 英文
  • 頁數: 356
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 148427427X
  • ISBN-13: 9781484274279
  • 相關分類: Apple DeveloperTDD 測試導向開發
  • 立即出貨 (庫存 < 4)

商品描述

Chapter 1: Introduction

Why write tests?

Levels of testing

Overview of TDD

Chapter 2: Your First Test

Basics of testing in iOS

XCTest

Code Examples

Chapter 3: The Testing Pyramid

Testing Level Values

Distributing tests along levels

Chapter 4: TDD Deep Dive

Core concepts

Complex examples

Implement projects from scratch with TDD

Chapter 5: Modularization for the Win

Introducing a legacy project

Transform with maintainability

Break up larger components

Apply TDD for modularization

Chapter 5: Dependency Injection and Mocks

Write tests for a component

Downsides of these techniques

Deciding when to apply

Chapter 6: Avoiding Threading Nightmares

Threading issues

Simulate situations

Determine which components need to have multithreading tests

Chapter 7: Testing Your Network Layer

Testing network code c

Differences between sync and async code

Test network code

Chapter 8: Taming CoreData

Core Data

Testing Core Data layer

Chapter 9: Adding Features to Legacy Apps

Testing concepts and techniques

Add a feature to an existing application

TDD and modularization

Modify a tested and modularized project

Chapter 10: Handling Production Issues

Improve the application quality

Make sure that similar problems don't happen again

Tools used to identify and keep track of bugs and crashes.

Add tests for every production issue discovered

Chapter 11: Performance Testing

Write performance tests

MetricKit

Value of performance testing

Write performance tests for iOS applications

商品描述(中文翻譯)

第一章:介紹
為什麼要編寫測試?
測試的層級
TDD 概述

第二章:你的第一個測試
iOS 測試基礎
XCTest
程式碼範例

第三章:測試金字塔
測試層級值
在層級中分配測試

第四章:深入探討 TDD
核心概念
複雜範例
從零開始實作專案使用 TDD

第五章:模組化的勝利
介紹一個舊有專案
轉型以提高可維護性
拆分較大的元件
應用 TDD 進行模組化

第六章:依賴注入與模擬
為元件編寫測試
這些技術的缺點
決定何時應用

第七章:避免執行緒噩夢
執行緒問題
模擬情境
確定哪些元件需要進行多執行緒測試

第八章:測試你的網路層
測試網路程式碼
同步與非同步程式碼的差異
測試網路程式碼

第九章:為舊應用程式新增功能
測試概念與技術
為現有應用程式新增功能
TDD 與模組化
修改已測試且模組化的專案

第十章:處理生產問題
改善應用程式品質
確保類似問題不再發生
用於識別和追蹤錯誤與崩潰的工具。
為每個發現的生產問題新增測試

第十一章:性能測試
編寫性能測試
MetricKit
性能測試的價值
為 iOS 應用程式編寫性能測試