Unit Testing

John F. Dooley · Apress eBooks · 2011

As was emphasized in the last chapter, nobody’s perfect, including software developers. In Chapter 13 we talked about different things to look for when you know there are errors in your code. Now we’re going to talk about how to find those errors. Of the three types of errors in your code, the compiler will find the syntax errors and the occasional semantic error. In some language environments, the run-time system will find others (to your users chagrin). The rest of the errors are found in two different ways - testing, and code reviews and inspections. In this chapter, we’ll discuss testing, when to do it, what it is, how to do it, what your tests should cover, and the limitations of testing. In the next chapter we’ll talk about code reviews and inspections. These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Read the paper · More papers on PaperTik