- eBook:iOS Test-Driven Development by Tutorials (First Edition): Learn Real-World Test-Driven Development
- Author:raywenderlich Tutorial Team, Joshua Greene, Michael Katz
- Edition:1 edition
- Data:December 2, 2019
- Pages:328 pages
- Format:PDF, ePUB
Learn how to test iOS Applications!iOS Test-Driven Development introduces you to a broad range of concepts with regard to not only writing an application from scratch with testing in mind, but also applying these concepts to already written applications which have little or no tests written for their functionality.
Who This Book Is ForThis book is for intermediate iOS developers who already know the basics of iOS and Swift development but want to learn how to write code which is both testable and maintainable.
Topics Covered in iOS Test-Driven Development
- The TDD Cycle: Learn the concepts of Test-Driven Development and how to implement these concepts within an iOS application.
- Test Expressions and Expectations: Learn how to test both synchronous code using expressions and asynchronous code using expectations.
- Test RESTful Networking: Write tests to verify networking endpoints and the ability to mock the returned results.
- Test Authentication: Write tests which run against authenticated endpoints.
- Legacy Problems: Explore the problems legacy applications written without any unit tests or without thought of testing the code.
- Breaking Dependencies into Modules: Learn how to take dependencies within your code and compartmentalize these into their own modules with their own tests.
- Refactoring Large Classes: Learn how to refactor large unweilding classes into smaller more manageable and testable classes / objects.
Chapter 1: What Is TDD?
Chapter 2: The TDD Cycle
Secton II: Beginning TDD
Chapter 3: TDD App Setup
Chapter 4: Test Expressions
Chapter 5: Test Expectatons
Chapter 6: Dependency Injection & Mocks
Secton III: TDD with Networking
Chapter 7: Introducing Dog Patch
Chapter 8: Networking client
Chapter 9: Using the Network Client
Chapter 10: Image Client
Secton IV: TDD in Legacy Apps
Chapter 11: Legacy Problems
Chapter 12: Dependency Maps
Chapter 13: Breaking Up Dependencies
Chapter 14: Modularizing Dependencies
Chapter 15: Adding Features to Existing Classes