Chapter 6Testing Your Apps

Automated testing is a very good idea. I won’t give you the hard sell on it here (there are other books that do a better job, like Test Driven Development [Bec02]), but I will say that writing tests for your software will save hours upon hours of time as your product grows more complex. If your current code doesn’t work as intended or something breaks in the future, you’ll know it immediately. Sounds like something we should really use in our iOS apps, right?

The APIs we’ve covered so far are essentially common to iOS development in both Objective-C and RubyMotion. The syntax may be a little different here and there, but all the classes and methods are part of the Apple’s Cocoa frameworks. Testing, however, is a ...

Get RubyMotion now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.