Test-Driven Development in Swift: Compile Better Code with Xctest and Tdd


Price:
Sale price$44.99

Description

Chapter 1: Why TDD?
Chapter 2: XCTest Introduction
Chapter 3: Getting Started with TDD
Chapter 4: TDD in the Real World
Chapter 5: Changing Tests with Fixtures
Chapter 6: Testing Static SwiftUI Views
Chapter 7: Testing Dynamic SwiftUI Views
Chapter 8: Code Based on Indirect Inputs
Chapter 9: Testing JSON Decoding
Chapter 10: Testing Network Code
Chapter 11: Injecting Dependencies with @EnvironmentObject
Chapter 12: Testing Side Effects
Chapter 13: Testing a Conditional View Presentation Chapter 14 Fixing Bugs and Changing Existing Code with TDD Chapter 15 Keeping Tests Isolated with Fakes and Clear with Dummies Chapter 16: Conclusion
Cheat Sheet

Appendix A: Where to Go From Here
Appendix B: Testing with Quick and Nimble
Appendix C: TDD with UIKit




Author: Gio Lodi
Publisher: Apress
Published: 08/01/2021
Pages: 288
Binding Type: Paperback
Weight: 0.96lbs
Size: 9.21h x 6.14w x 0.65d
ISBN13: 9781484270011
ISBN10: 1484270010
BISAC Categories:
- Computers | Programming | Macintosh

About the Author

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.