Testing - Testing Testing is the process of running a...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Testing Testing is the process of running a program against "test cases" in order to get some evidence of the correctness of the program. If an error is discovered, then the process of debugging attempts to locate the error and fix it. This topic is not sexy. In fact, many would call it dull. Nevertheless, you can save yourself a lot of time and effort if you follow some simple testing principles and strategies. It is worth spending some initial time learning about the principles and strategies and practicing them on your programming assignments. We suggest that you read Gries/Gries pp. 385–389, about testing and creating test cases, and Gries/Gries pp. 392–394 about approaches to creating test cases. Also, read carefully the ProgramLive CD, pp. 14-1 and 14-3, and watch the lectures on those pages. Below, we summarize a bit of the material; the text goes into more detail. Two guidelines for testing (Gries/Gries, p. 386) Guideline . Test each method thoroughly as it is completed! Develop the methods
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

Testing - Testing Testing is the process of running a...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online