Test writing best practices
- Unit test structure:
- Setup
- Execution
- Validation
- Cleanup
- Avoid anti-patterns:
- test case depending on the system state from the previous test
- dependencies between test cases
- don't inspect more than necessary
- slow running tests