Book description
Improve current or new projects with top notch testability and maintainability. Writing tests improves the design of your apps, as it pushes you to have a more modularized design. This in turn improves the maintainability and sustainability of your apps. This book is for iOS developers who already know the basics of iOS and Swift development but want to learn all the testing pro features in iOS.- Use mocking and dependency injection to make components more testable
- Write tests for asynchronous code like network code
- Add new features to existing legacy apps using TDD
Table of contents
- Cover
- Front Matter
- 1. TDD Basics
- 2. Unit Tests
- 3. UI Tests
- 4. Testing Pyramid
- 5. TDD Deep Dive
- 6. Modularization for the Win
- 7. Dependency Injection and Mocks
- 8. Avoiding Multithreading Nightmares
- 9. Testing Your Network
- 10. Taming Core Data
- 11. Adding Features to a Legacy App
- 12. Handling Production Issues
- Back Matter
Product information
- Title: Modularizing Legacy Projects Using TDD: Test-Driven Development with XCTest for iOS
- Author(s):
- Release date: October 2021
- Publisher(s): Apress
- ISBN: 9781484274286
You might also like
book
Beginning iPhone Development with SwiftUI: Exploring the iOS SDK
Tame the power of Apple’s new user interface toolkit, SwiftUI. Integrate all the interface elements iOS …
book
iOS Unit Testing by Example
Fearlessly change the design of your iOS code with solid unit tests. Use Xcode's built-in test …
book
Build Location-Based Projects for iOS
Coding is awesome. So is being outside. With location-based iOS apps, you can combine the two …
book
Lightning-Fast Mobile App Development with Galio
Leverage the power of Galio and React Native to create beautifully designed, practical, and exciting mobile …