Xcode 10 Code Coverage

I've been using Xcode 10 (on High Sierra) to develop algorithms using Swift. I typically create "Command Line Tool" projects for this purpose, which gives me the latitude of prototyping as a command line utility and using the test framework.


When I use the test framework, I code coverage an important metric. Unfortunately, Xcode does not capture code coverage information for every run of tests, rather it captures it approximately 1 out of every 4 or 5 run of the tests.


Is anyone else seeing this behavior?


Is this a problem due to the fact that I'm running on High Sierra?


Is this a configuration issue?


Cheers,

-Patrick

Xcode 10 Code Coverage
 
 
Q