Test-Driven Development Insights

Get an overview of test-driven development's role in identifying interface issues, guiding bug fixes, and enhancing code.

Why do we need testing?

One of the many ways these unit tests can help is when debugging application problems. When each unit seems to work in isolation, any remaining problems will often be the result of an improperly used interface between components. When searching for the root cause of a problem, a suite of passing tests acts as a set of signposts, directing the developer into the wilderness of untested features in the borderlands between components.

When a problem is found, the cause is often one of the following:

  • Someone writing a new class failed to understand an interface with an existing class and used it ...