"There are five practical reasons that we write tests. Whether we realize it or not, our personal testing philosophy is based on how we judge the relative importance of these reasons." - Sara Mei
This episode discusses the factors.
Sarah's order:
Verify the code is working correctly
Prevent future regressions
Document the code’s behavior
Provide design guidance
Support refactoring
Brian's order:
Verify the code is working correctly
Prevent future regressions
Support refactoring
Provide design guidance
Document the code’s behavior
The episode includes reasons why I've re-ordered them.
view more