Unit Test Coverage in Xcode
Unit Test Coverage in Xcode
- Subject: Unit Test Coverage in Xcode
- From: Joe Wildish <email@hidden>
- Date: Fri, 21 Dec 2007 20:58:37 +0000
Hi All,
I am trying to configure Xcode to give me a report on unit test
coverage. I've been following the instructions posted here: http://www.supermegaultragroovy.com/blog/2005/11/03/unit-testing-and-code-coverage-with-xcode/
... I seem to be running into problems :( Hopefully someone on the
list has been more successful than me.
I have created an additional build configuration called "Coverage" and
checked "Generate Test Coverage Files", "Instrument Program Flow" and
added "-lgcov" to the "Other Linker Flags" in the inspector. However,
when I build my application, it seems the output in the build/
directory is identical to when I use the "Debug" build configuration.
I am assuming that this step should produce some .gcda files, judging
from the find command than Chris suggests you use in the Unit Test
target shell script? ... Am I correct in thinking these files should
be produced at this stage? Obviously, with these files *not* being
produced, the find command doesn't do anything, so doesn't produce any
output.
Many thanks,
-Joe
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden