Reputation: 1234
I have ticked "Gather coverage data" and run the unit test, however Xcode shows "No Coverage Dat".
All Unit test are passed. Xcode 7 is used
Upvotes: 10
Views: 3241
Reputation: 692
Edit Scheme > Test > Info > check mark Code Coverage
Don't forget to choose Editor > Show Code Coverage
Upvotes: 1
Reputation: 1
This is pretty old, but in case anyone else runs into this issue:
I also had to turn on "Enable Code Coverage Support" in Build Settings.
Enable Code Coverage Support screenshot
(For clarity, this is from Xcode 7.3.1)
Upvotes: 0