


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



CMSC 131 Fall 2007 Jan Plane (adapted from Bonnie Dorr)
CMSC 131 Fall 2007 Jan Plane (adapted from Bonnie Dorr)
1
CMSC 131 Fall 2007 Jan Plane (adapted from Bonnie Dorr)
2
Unit Testing
CMSC 131 Fall 2007 Jan Plane (adapted from Bonnie Dorr)
3
JUnit
A unit-testing tool for Java
Includes capabilities for:
Test definition, including output checking
Test running (execution)
Result reporting
Seamless integration with Eclipse
Note
In this class we will use JUnit 3.8.
So, when given a choice select JUnit 3
CMSC 131 Fall 2007 Jan Plane (adapted from Bonnie Dorr)
6
Hints on Testing
Give names to tests that relate to class being tested
Develop some tests before you code
Use tests to debug
How many tests?