0.Debugging vs. Testing§
- Debugging: (Localizing and) fixing a (known) bug
- Testing: Recognizing that you have a specific bug
- Debugging is hard! Testing is harder. You probably don’t have a lot of experience with testing.
- JUnit tests are meant to help you test, and to help you not spend countless hours debugging.
- Regression Testing: Include tests that verify all of your fixed bugs remain fixed as you continue to evolve your program.