Understand how our unit tests have built a stronger application.
[Instructor] A really important xcode feature,…we're going to finish with, is code coverage.…Code coverage lets us view and track our tests…in a visual format.…And it needs to be enabled first,…but after that we'll always have the latest…test data in a really nice format.…Enabling code coverage is pretty straight forward,…but it's really important, so don't forget…to do it in your projects.…Up here at the top of the navigation bar,…where it says film fest,…you're going to open that and click on edit scheme.…
We only want to edit the test scheme.…And right here, it's giving us an option…to enable code coverage,…by checking that check box.…It's all you have to do, and that's it.…Go ahead and close out the scheme window.…And command u to run the test again…so that code coverage can gather the latest data.…Okay, so it succeeded.…In order to see the code coverage of our app,…we need to go to the left hand navigator,…and at the top, choose the icon on the far right,…and select the latest test.…
Then select the coverage tab.…
- Test-driven development: history and theory
- Creating a data model test
- Expanding tests
- Testing class methods
- Checking for duplicates
- Testing table views
- Mocking cells
- Testing cell selection
- Assembling the app
Skill Level Intermediate
Distributing Your iOS App for Testing with TestFlightwith Ron Buencamino35m 10s Intermediate
1. Foundation and Theory
2. Data Models and the Manager Class
3. UITableView Testing
4. Finishing Touches and Xcode Features
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
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.