Skip to main content

What is code coverage?

· One min read
Ace the iOS Interview
Aryaman Sharda
Sources & Resources

Main Source: đź”— Ace the iOS Interview

Additional Sources:

Further Reading:

TL/DR

Code coverage allows you to measure what percentage of your codebase is being exercised by your unit tests. More importantly, it helps you identify what sections of your codebase your tests don’t cover.

This option is disabled by default.

To enable it for your project, edit the target’s settings and select the Code Coverage checkbox:

Now, when you run your tests, you’ll see a breakdown of what areas of your codebase are covered by tests.