Tag: Property-Based Testing
All the articles with the tag "Property-Based Testing".
- Featured
Break Your Own Code First: Property-Based Testing in TypeScript
Your tests pass because you chose the inputs, and you chose them with the same mental model that wrote the bug. State the law instead and let a generator hunt the counterexample. Doing this to my own published reducer found a rule I had promised in print and never actually enforced.