I saw something like this recently (yesterday). I turned on Code Coverage then ran the app. The Code Coverage slider bars showed that ONE Swift file had 0% coverage. Since I just added a bunch of tests that tested that file, it was surprising, When I clicked the icon to go to the code in that file, it showed the Code Coverage column that showed how many times the line was called...ALL were called...yet the Code Coverage slider bar showed 0% on that file....Today when I run it, now it shows 100% on slider bar and in the file. Go figure. Gremlins were running wild yesterday holding that slider bar at 0, today they are sleeping. Who knows? By the way I'm using Xcode 8.3.3. I tried using Xcode 9 a few days ago and got errors in this area, so I went back to something more stable.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: