Testing is much more effective, and much less painful, if you approach it systematically.
What properties you want to test for:
what modules you want to test, and what order you’ll test them in;
how you’ll generate test cases;
how you’ll check the results;
when you’ll know that you’re done.
Deciding what properties to test for will require knowledge of the problem domain,
Choosing modules is more straightforward.
Checking results can be hard.
It’s a bad idea to do ad hoc testing that can’t be repeated.
Regression Tests: a suite of tests that can be reexecuted from a file.
Test first programming:encourages construction of regression tests even before any application code is written. It is an important part of the new development doctrine called extreme programming. JUnit, the testing framework that you've been using, was designed for this.
Copyright © 1998-2009 Dilvan Moreira