Debug Tests into Unit Test Suites Because one small test will
often lead us to discover the true source of a bug, it that
effective debugging should involve lots of testing. There's
simply no way to build a reliable system without thoroughly
testing it. Although many programmers may be unfamiliar with the
XP style of coding (in which writing the tests is interleaved
with writing the code), there is one form of testing that does
while coding: . Some programmers write these tests using
statements, others write them to work with a standalone
debugger, others with the debugger in their IDE of choice. Quite
often, you will see programmers discard these tests once they've
gotten the program to run correctly. This is a waste of very
good tests. Why not incorporate them into the unit test suite
over a program? After all, if one of them were to exhibit an
unexpected result, we'd want to know about it. Incorporating
debugging tests into the unit tests can be done with relatively
little effort, but there are some adapta