After building a few Firefox OS applications using various Web APIs, we have finally reached the point where we will have to test our application vigorously to ensure that the developed apps are robust and reliable. In this chapter, we will use some of the techniques that are used by programmers to develop their apps in a professional manner. It is a characteristic of every good programmer to thoroughly test their app to ensure the achievement of positive results in each and every possible practical situation. These techniques, at first glance, may seem boring, complex, or time consuming; however, to ignore or leave them for the future is not wise, as these tests will be of immense use to you when the codebase of your application grows.
The art of building apps and testing them during the development process itself is commonly known as Test Driven Development (TSD), and is extremely helpful in the process of building robust applications. This is the recommended...