• 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
Unit Test Coverage in Xcode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Unit Test Coverage in Xcode
      • From: Aaron Montgomery <email@hidden>
References: 
 >SenTestingKit framework (From: Joe Wildish <email@hidden>)
 >Re: SenTestingKit framework (From: Gouri Jonnalagadda <email@hidden>)

  • Prev by Date: Re: Doxygen and doc sets
  • Next by Date: Re: noob
  • Previous by thread: Re: SenTestingKit framework
  • Next by thread: Re: Unit Test Coverage in Xcode
  • Index(es):
    • Date
    • Thread