Algorithms and OOD (CSC 207 2013F) : Outlines

Outline 05: Unit Testing


Held: Friday, 6 September 2013

Back to Outline 04 - Git, Revisited. On to Outline 06 - Debugging.

Summary

We begin to explore the process of unit testing, focusing on the JUnit testing framework.

Related Pages

Overview

Administrivia

A Few More Notes on Git

You may find it more convenient to use the following commit command, which doesn't open the editor.

git commit -m "*message*"

I'll admit that I prefer to open the editor and see a quick list of the changes I'm committing. (I also often write multi-line commit messages.)

A Brief Introduction to Unit Testing

An Example: Testing Exponentiation

What tests would you write for a function that computes x^n, where x and n are integers?

Test-Driven Development

Lab: Unit Testing

Do the lab.

Be prepared to reflect.

Copyright (c) 2013 Samuel A. Rebelsky.

Creative Commons License

This work is licensed under a Creative Commons Attribution 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by/3.0/ or send a letter to Creative Commons, 543 Howard Street, 5th Floor, San Francisco, California, 94105, USA.