Goals of Unit Testing, What Makes a Test Valuable?

Goals of Unit Testing

Unit tests give you confidence that:

  • Changes don't break existing functionality

  • Move with a faster pace

  • Maintain low amount of technical debt

What Makes a Test Valuable?

  • Has a high chance of catching a regression error

  • Has a low chance of producing a false positive

  • Provides fast feedback

  • Has low maintenance cost

Last updated