O'Reilly logo

Dojo: Using the Dojo JavaScript Library to Build Ajax Applications by James E. Harmon

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 17. Testing and Debugging

 

Manager: Did you test that program?

Programmer: Well, it compiled.

 
 --Both the Manager and Programmer chose to remain anonymous (but you know who they are).

We’ve probably all made a program change that was so small and so straightforward that we really didn’t need to test it. And then we lived to regret that decision. Why do developers often avoid testing? One of the reasons is that it isn’t always easy to do. By providing tools for making testing easier, Dojo encourages developers to do what they know they should—test, test, and test. We test to find errors, and after we find them, we must fix them. In this chapter we explore some special features that Dojo provides to aid in finding errors and fixing them.

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