Swapnil
Swapnil

Reputation: 1878

Exclude files from Xcode code coverage report

Is there any way to exclude files in XCode code coverage.

I did research and found some tools here - Exclude Files/Lines of code in Xcode 7 Code Coverage

But all these are third party tools. Is there any way we can do it in xcode it self??

Upvotes: 18

Views: 3906

Answers (1)

Catalina T.
Catalina T.

Reputation: 3494

In Xcode 10.0, you can only exclude complete targets, not individual files.

Here's how to do it: Edit Scheme -> Test -> Options:

Code coverage target selection

Upvotes: 2

Related Questions