13.3 Benefits of automated (unit) testing

  • Don’t have to remember all the ad-hoc testing you’ve done
  • Fewer bugs, more natural to develop adversarial mindset compared to informal testing
  • Better code structure: if you’re having a hard time writing a test you may need to refactor your code
  • Test driven development
  • Robust code