O'Reilly logo

RubyMotion by Clay Allsopp

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required