• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Unit Test Coverage in Xcode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >SenTestingKit framework (From: Joe Wildish <email@hidden>)
 >Re: SenTestingKit framework (From: Gouri Jonnalagadda <email@hidden>)
 >Unit Test Coverage in Xcode (From: Joe Wildish <email@hidden>)

  • Prev by Date: Re: Xcode 3 not always noticing app has quit
  • Next by Date: Debugging Cocoa application unit tests on Leopard
  • Previous by thread: Unit Test Coverage in Xcode
  • Next by thread: DEVELOPER_SDK_DIR - where documented?
  • Index(es):
    • Date
    • Thread