my application not written mac platform, has it's own unit-test system can triggered command-line. possible make use of code coverage support in xcode executing it?
i tried make run unittest triggers 'main(...)' function of application manually (see code block), since process started application 'xctest' lot of things missing resources application bundle, etc (incorrect or wrong paths, ...).
- (void)testexample { int main(int argc, char* argv[]); main(...); }
is there way tell xcode application should started can output code coverage can reviewed inside xcode?
i didn't use xcode coverage tools used gcov before. anyway in this article there information how create llvm coverage report. can use unit-test system llvm's coverage flags , create .profdata report llvm-profdata tool.
as understand xcode's code coverage tool creating .profdata report , uses it. have no straightforward solution may find information. if find way make xcode uses .profdata it's done :)
Comments
Post a Comment