Tutorial: How To Get Code Coverage Data In Xcode 4 And Improve Your Testing With It

While previously browsing through some information on unit testing in Xcode 4, I noticed some issues from people looking to obtain the code coverage data for their unit tests in Xcode 4.  For those unfamiliar with the term code coverage –  it is a measurement of how much of your source code is being tested when you do your testing.

Recently, I received a submission for an excellent tutorial demonstrating how to generate and display the GCOV coverage data, and how to improve the coverage of your unit tests.

The tutorial is from Claus Broch and can be found here:
Covering It All Up

Claus recommends using the open source Cover Story application to get a better look at your code coverage data.

If you’re doing any unit testing in Xcode 4 this is a measurement you will definitely want to have.

Added to the Xcode 4 Tutorial and Guide page.

 

Learn how to quickly build apps using Phonegap and Dreamweaver from the start through a series of videos and example projects.  Over 7 hours of video so far explaining what you need to know including maps, the camera api, and more.
Read more...
DeliciousTwitterFacebookLinkedInEmail

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can send a Tweet to @maniacdev on Twitter or submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Click on a tab to select how you'd like to leave your comment

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>