O'Reilly logo

RubyMotion iOS Development Essentials by Abhishek Nalwaya, Akshat Paul

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 8. Testing – Let's Fail Gracefully

"Truth will sooner come out from error than from confusion."

Francis Bacon

In order to maintain high quality of a software product, testing is a very important part of the software development life cycle. In this chapter we will learn how we can test RubyMotion applications. We will learn to write unit tests, which can test an isolated code, and then learn functional testing, which will help us automate the UI tests. The following topics will be covered in this chapter:

  • Unit testing
  • Functional testing
  • Device events

Unit testing

The goal of unit testing is to isolate each part of the program and show that the individual parts function properly. RubyMotion uses MacBacon, which is an iOS flavor of Bacon

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