In this video, explore how to keep track on the results of your unit tests. Mark DiFranco shows you where to look in Xcode for the test results, and shows how you can use these interfaces to help decide where to add more tests.
- [Instructor] Now that we've taken the time…to write unit tests for our code, we need to make sure…to monitor them, and ensure that they all continue to pass.…Xcode has several features that can help us do this.…There's a section in the navigator panel…on the left side of Xcode.…We can click on the diamond icon, which is the fifth icon…from the left, or hit command five to open it.…Here we can see the results of every single test,…and every single test case.…We can highlight over the diamonds to run a single test,…or a test case.…We can also take a look at detailed test results…for a specific run of tests.…
For that we'll head over to the report navigator,…which is the last icon…on the right side of the left navigator panel.…We can expand the Speedometer section.…And we'll select one of the test lines.…Here we can see the results…of all of our tests and test cases once again.…There's also a section called Coverage.…This section gives us detailed results…on how much of our code is covered by tests.…We can sort by Coverage…
- Why write unit tests?
- What is dependency injection?
- Using protocols to help with tests
- Handling external dependencies
- Anatomy of a test case
- Writing tests
- Analyzing code coverage
- Visualizing test results
- Writing and extending UI tests
Skill Level Intermediate
Core Data for iOS and macOS Enterprise Developerswith Jon Bott1h 46m Intermediate
Learning Server-Side Swift with Vaporwith Ron Buencamino1h 30m Intermediate
Swift 3 Essential Training: Beyond the Basicswith Scott Gardner2h 58m Intermediate
1. Dependency Injection
2. Using Protocols
3. Writing Tests
4. UI Tests
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.