TJ's Testing Habits
A collection of testing habits. These aren’t hard and fast rules I follow, but guidelines for how I shape tests, suites, and sometimes, the production code they interact with.
Ready for consumption
- AAA
- Better error message
- Box breathing
- Call your shot
- Clean slate
- Inject determinism
- Literal values
- Obvious failure
- Read the error
- Right wrong answer
- Write it backwards
Still under construction
This is still under construction, please pardon the dust!
- Behavior not implementation
- Data management
- Performance
- Readability
- When not to test