Jimmy Bogard, wrote an article: Getting value out of your unit tests, where he gives four rules:
- Test names should describe the what and the why, from the user’s perspective
- Tests are code too, give them some love
- Don’t settle on one fixture pattern/organizational style
- One Setup, Execute and Verify per Test
In your opinion these guidelines are complete? What are your guidelines for unit tests? Please avoid specific language idioms, try to keep answers language-agnostic .