更新时间:2021-07-16 09:46:03
封面
版权页
Credits
About the Author
About the Reviewer
www.PacktPub.com
Support files eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. Your First Unit Tests
Building your first automatic unit test
Understanding TDD
TDD in Xcode
Advantages of TDD
Disadvantages of TDD
What to test
Summary
Chapter 2. Planning and Structuring Your Test-Driven iOS App
Task list view
Task detail view
Task input view
Structure of the app
Getting started with Xcode
Setting useful Xcode behaviors for testing
Chapter 3. A Test-Driven Data Model
Implementing the ToDoItem struct
Implementing the Location struct
Implementing the ItemManager class
Chapter 4. A Test-Driven View Controller
Implementing ItemListViewController
Implementing ItemListDataProvider
Implementing DetailViewController
Implementing InputViewController
Chapter 5. Testing Network Code
Implementing asynchronous tests
Implementing a login request to a web service
Handling errors
Chapter 6. Putting It All Together
Connecting parts
Serialization and deserialization
Functional tests
Chapter 7. Code Coverage and Continuous Integration
Enabling code coverage
Continuous integration
Automatic deployment with fastlane
Chapter 8. Where to Go from Here
What we have learned so far
Integration tests
UI tests
Behavior-Driven Development
TDD in existing projects
More information about TDD
Index