Unit and Regression Testing
By Adrian McCarthy, February 01, 1997
Testing a function, module, or object in isolation from the rest of the program -- referred to as "unit testing" -- coupled with rerunning tests to detect unexpected changes in behavior ("regression testing") can dramatically reduce your bug counts. Adrian describes how to build effective units tests and automate regression testing.
Dr. Dobb's Journal February 1997: Unit and Regression Testing
Unit and Regression Testing
By Adrian McCarthy
Dr. Dobb's Journal February 1997
accept:
del *.ref
copy *.out *.ref
regress: $(TESTOUTS)
echo "Regression Report" > REGRESS.RPT
fc TVECTOR.REF TVECTOR.OUT >> REGRESS.RPT
# ... one for each unit test
Example 2: Adding an accept target and enhancing the regress target.
Copyright © 1997, Dr. Dobb's Journal