Code Coverage in Xcode - How to avoid a vanity metric for your iOS app
['Benoit Pasquier']
Benoit Pasquier - Swift, Data and more
Since Xcode 7, iOS developers can generate a code coverage for their app: a report showing which area of their app is covered by unit tests. The next time you’ll run your unit tests, you’ll that you’ve got a report of code coverage showing how much of you app is covered. If I have to add unit tests or UI tests for my views, it would make sense to add them under the main test target.