My earlier post on iOS code coverage reports was, if not wrong, at least sub-optimal. You still need to set Generate Test Coverage Files and Instrument Program Flow to Yes for the Debug build configuration. Instead of manually flushing the coverage data upon finishing each test, it’s better to flush it have the entire testing. Likewise […] Read more – ‘iOS Code Coverage Revisited’.
2013-11-13: I have found a better way to generate the coverage reports for all source files. As part of the testing an iOS app, I want to make sure that I am actually covering important areas of my application with tests. Xcode 5 (and previous versions) has code coverage support, but it’s not obvious. Here’s […] Read more – ‘Generating iOS Code Coverage Reports’.