Xcode has a number of testing features already build in. In this video, take a quick look at Code Coverage, a tool that shows a comprehensive visual representation of your entire test suite from within the Xcode environment.
- [Narrator] A really important Xcode feature…we're going to finish with is code coverage.…Now, code coverage just let's us view…and track our tests in a more visual format.…It needs to be enabled first in the editor,…but after that, we'll always have the latest test data…in a really nice format.…So, enabling code coverage is pretty straight forward,…but it's really important, so don't forget…to do this in all of your projects.…Up at the top of the navigation bar where it says film fest,…we're going to say edit scheme.…Now, we only want to edit the test scheme,…so let's select that.…
Make sure info tab is selected…and right here where it says code coverage,…let's check that checkbox and close this out.…Now that we have code coverage enabled,…we should command U and run our test suite…to gather the latest data.…So, to access the code coverage data,…we can go up to our left hand inspector…and choose the far right icon,…called show the report navigator.…This is going to give us a list…of all the tests we've run today.…
- What is test-driven development?
- Creating and expanding a data model
- Creating a manager class
- Testing class methods
- Checking for duplicates
- Testing table views
- Mocking cells
- Testing cell selection
- Assembling the app
Skill Level Intermediate
Advanced iOS Development: Working with APIswith Saul Mora1h 59m Intermediate
Designing iOS and Android Appswith Renata Phillippi1h 6m Intermediate
1. Foundation and Theory
2. Getting Started
3. The Manager Class
4. TableView Testing
5. Finishing Touches
- 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.