Reputation: 1286
I'm having problem with getting code coverage in Xcode. It was working at some point of time, however after sometime it has just stopped showing coverage. I've checked both the schemes and test coverage plane for the appropriate settings.
This is how my scheme looks like:
This is what my test coverage plane shows after running test cases:
Upvotes: 11
Views: 2346
Reputation: 1286
I tried many many things to get this fixed. Finally I ended up deleting all Xcode I had in the Mac, and cleared all the meta-data from /Users/bbirani/Library/Developer/
. After all this clean-up, I re-installed Xcode and VOILAA!! it started working.
Upvotes: 4
Reputation: 58
You can try some of this
I hope your problem gets solved, I got stuck to the same problem before and it was frustrating to solve that, and you never know which way might work.
Upvotes: 2
Reputation: 136
Maybe try using Slather instead? https://cocoacasts.com/how-to-generate-code-coverage-reports-in-xcode-with-slather
Upvotes: 1
Reputation: 156
It happens to me a lot. Try restarting your xcode as well as the simulator(if you are using one). It seems like an xcode issue.
Upvotes: 3