What criteria do you use to determine what kinds of tests to write for a particular feature or bug fix?

Technical