TS.xy
TS.xy

Reputation: 1234

Xcode 7 code coverage - No Coverage Data

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

enter image description here

enter image description here

Upvotes: 10

Views: 3241

Answers (3)

Prashant Bhayani
Prashant Bhayani

Reputation: 692

Edit Scheme > Test > Info > check mark Code Coverage

Don't forget to choose Editor > Show Code Coverage

Upvotes: 1

caffiend
caffiend

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

TS.xy
TS.xy

Reputation: 1234

Need to tick "Show Test Bundle"

Upvotes: 12

Related Questions