From the course: iOS App Development: Test-Driven Development

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Code coverage

Code coverage

From the course: iOS App Development: Test-Driven Development

Start my 1-month free trial

Code coverage

- [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…

Contents