Skip to Content
Sams Teach Yourself Xcode® 4 in 24 Hours
book

Sams Teach Yourself Xcode® 4 in 24 Hours

by John Ray, William Ray
June 2012
Beginner content levelBeginner
704 pages
16h 27m
English
Sams
Content preview from Sams Teach Yourself Xcode® 4 in 24 Hours

Hour 18. Test Early, Test Often

What You’ll Learn in This Hour:

The wrong way (adding unit tests to an existing application)

The right way (test-driven development and testing before code)

How to use the available OCUnit testing macros to validate your application logic

How to give the OCUnit framework a handle into your running app to test live application features

All the examples so far have focused on the aspects of Xcode necessary to complete the steps, and this has led to us displaying some fairly shoddy practices in terms of code development, testing, and debugging. Code littered with NSLog() calls, although convenient to use as an example (of something other than good code), is difficult to maintain and is quite unlikely to ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Xcode 4: Develop and Design

Mastering Xcode 4: Develop and Design

Joshua Nozzi
Cocoa in a Nutshell

Cocoa in a Nutshell

Michael Beam, James Duncan Davidson
Bluetooth™: Connect Without Cables

Bluetooth™: Connect Without Cables

Jennifer Bray, Charles F. Sturman

Publisher Resources

ISBN: 9780132918572Other