Re: Unit Test Coverage in Xcode
Re: Unit Test Coverage in Xcode
- Subject: Re: Unit Test Coverage in Xcode
- From: Aaron Montgomery <email@hidden>
- Date: Fri, 21 Dec 2007 14:00:40 -0800
On Dec 21, 2007, at 12:58 PM, Joe Wildish wrote:
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.
I also sent you something (much larger) off-list. But this might
answer your immediate question. Building the application should
generate .gcno files. The .gcda files are generated when you run the
application. It would also help to know which Xcode version you are
using on which version of the OS, there are some changes in the unit
testing and the SDKs that need to be adjusted for certain versions
combinations.
Aaron
_______________________________________________
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