CSC161 2011S Imperative Problem Solving

Class 25: Unit Testing

Back to Building Libraries. On to Interactive Testing.

This outline is also available in PDF.

Held: Monday, 7 March 2011

Summary: We consider the related processes of unit testing and test-driven development.

Related Pages:

Notes:

Overview:

Unit Testing Basics

Unit Testing Frameworks

Exercise: Average

Let's test a simple routine used to average values.

Exercise: Binary Search

We'll also try testing binary search, but we may not get it it cmpletely.

Back to Building Libraries. On to Interactive Testing.

Disclaimer: I usually create these pages on the fly, which means that I rarely proofread them and they may contain bad grammar and incorrect details. It also means that I tend to update them regularly (see the history for more details). Feel free to contact me with any suggestions for changes.

This document was generated by Siteweaver on Tue May 10 10:34:31 2011.
The source to the document was last modified on Wed Jan 5 12:52:12 2011.
This document may be found at http://www.cs.grinnell.edu/~rebelsky/Courses/CSC161/2011S/Outlines/outline.25.html.

Samuel A. Rebelsky, rebelsky@grinnell.edu