我正在使用gcovr来生成cobertura的代码覆盖率报告。在xcode 4.6下一切都很正常。但是当我升级到xcode5之后,我得到的覆盖率是0%...
我的设置:
- gcovr 3.0
- Xcode 5 (Apple LLVM 5)
- 'Generate Test Coverage Files'设置为YES
- 'Instrument Program Flow'设置为YES
我使用的命令如下:
gcovr -r . --object-directory Build/Intermediates/myApp.build/Debug-iphonesimulator/myApp.build/Objects-normal/i386 --exclude '.*Tests.*' --exclude '.*KiwiUnitTest' --exclude '.*main.*' --xml > reports/coverage.xml
有人遇到相同的问题或者更好的,有解决方案吗?:)