| |
| | Introduction to Unit Testing |
 | | If you're writing your test suite and thinking about how to achieve maximum coverage, one way to do it is to look at the source for your class while you're writing the test suite and go through every method and branch. |
 | | This way the test groups aren't dependent on each other and a failure in one small area of the test suite won't randomly break a bunch of tests that should work. |
 | | This way, if, say, the name equality test is broken, we will know exactly what went wrong, because the "same names, different types" test will fail if the name test is broken to return false negatives, and the "different names, same types" test will fail if the name test is broken to return false positives. |
| www.zevils.com /~matthewg/writings/unit-testing-lecture/notes.html (1479 words) |
|