Testing Best Practices
Test Authoring:
- Test behavior, not implementation
- Use testing pyramid (many unit, some integration, few E2E)
- Test edge cases and error conditions
- Keep tests simple and fast
Test Organization:
- Group related tests
- Use descriptive test names
- Follow AAA pattern (Arrange, Act, Assert)
- Keep test data minimal