Modularizing Legacy Projects Using TDD: Test-Driven Development with XCTest for iOS

El-Morabea, Khaled, El-Garem, Hassaan

  • 出版商: Apress
  • 出版日期: 2021-10-26
  • 售價: $1,575
  • 貴賓價: 9.5$1,496
  • 語言: 英文
  • 頁數: 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 進行模組化

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

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

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

第九章:掌控 CoreData
Core Data
測試 Core Data 層

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

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

第十二章:效能測試
撰寫效能測試
MetricKit
效能測試的價值
為 iOS 應用程式撰寫效能測試