目錄(132章)
倒序
- coverpage
- Title Page
- Third Edition
- Copyright
- Test-Driven iOS Development with Swift 4
- Third Edition
- Credits
- About the Author
- About the Reviewer
- www.PacktPub.com
- Why subscribe?
- Customer Feedback
- Preface
- What this book covers
- What you need for this book
- Who this book is for
- Conventions
- Reader feedback
- Customer support
- Downloading the example code
- Downloading the color images of this book
- Errata
- Piracy
- Questions
- Your First Unit Tests
- Building your first automatic unit test
- What are unit tests?
- Implementing a unit test example
- Important built-in assert functions
- Understanding TDD
- The TDD workflow - red green and refactor
- Red
- Green
- Refactor
- TDD in Xcode
- An example of TDD
- Red - example 1
- Green - example 1
- Refactor - example 1
- Red - example 2
- Green - example 2
- Refactor - example 2
- A recap
- Finding information about tests in Xcode
- Test Navigator
- Tests overview
- Running tests
- Running one specific test
- Running all tests in a test case
- Running a group of tests
- The setUp() and tearDown() methods
- Debugging tests
- Breakpoint that breaks on test failure
- The test again feature
- The advantages of TDD
- The disadvantages of TDD
- What to test
- Summary
- Planning and Structuring Your Test-Driven iOS App
- The task list view
- The task detail view
- The task input view
- The structure of the app
- The table view controller the delegate and the data source
- Table view cells
- The model
- Other view controllers
- The development strategy
- Getting started with Xcode
- Setting up useful Xcode behaviors for testing
- Useful build behaviors
- Testing behaviors
- Summary
- A Test-Driven Data Model
- Implementing the ToDoItem struct
- Adding a title property
- Adding an itemDescription property
- Removing a hidden source of bugs
- Adding a timestamp property
- Adding a location property
- Implementing the Location struct
- Adding a coordinate property
- Implementing the ItemManager class
- Count
- Adding and checking items
- Equatable
- Removing all items
- Ensuring uniqueness
- Summary
- A Test-Driven View Controller
- Implementing ItemListViewController
- Implementing ItemListDataProvider
- Conducting the first tests
- Using mocks
- Checking and unchecking items
- Implementing ItemCell
- Implementing DetailViewController
- Implementing InputViewController
- Summary
- Testing Network Code
- Implementing tests using a web service
- Implementing a login request
- Handling errors
- Summary
- Putting It All Together
- Connecting parts
- The initial view controller
- Showing the input view
- Showing the detail view
- Serialization and deserialization
- Functional tests
- Adding a UI test target
- Recording and testing
- Summary
- Code Coverage
- Enabling code coverage
- Code coverage in Xcode
- How much code coverage is enough?
- Automatic deployment with fastlane
- Installing fastlane
- Setting up
- Summary
- Where to Go from Here
- What you have learned so far
- Integration tests
- UI tests
- Behavior-Driven Development
- TDD in existing projects
- Generating mocks with Sourcery
- More information about TDD
- Summary 更新時間:2021-07-02 15:39:57
推薦閱讀
- Mastering Entity Framework Core 2.0
- Visual Studio 2012 Cookbook
- 跟“龍哥”學C語言編程
- Arduino開發實戰指南:LabVIEW卷
- Java Web程序設計
- SEO實戰密碼
- Building a Quadcopter with Arduino
- SAP BusinessObjects Dashboards 4.1 Cookbook
- Ext JS 4 Web Application Development Cookbook
- Linux Device Drivers Development
- Android Studio Cookbook
- 貫通Tomcat開發
- Android應用開發實戰(第2版)
- Arduino電子設計實戰指南:零基礎篇
- 奔跑吧 Linux內核
- 安卓工程師教你玩轉Android
- 計算機應用基礎
- Continuous Integration,Delivery,and Deployment
- R統計應用開發實戰
- Instant JRebel
- OpenStack Networking Cookbook
- Node.js入門指南
- Mastering .NET Machine Learning
- D3.js:Cutting-edge Data Visualization
- 微信小程序開發實戰(第2版)
- Python Django開發實戰(視頻講解版)
- Kivy:Interactive Applications in Python
- 教孩子學編程(信息學奧賽C語言版)
- Go程序開發實戰寶典
- Designing and Implementing Test Automation Frameworks with QTP