2 ms·
Hypothesis is one of the libraries I aim to be using in every project. If my application doesn't allow for that (because it's all views/HTTP/etc), I refactor va
by StavrosK 9y ago
Hypothesis is one of the libraries I aim to be using in every project. If my application doesn't allow for that (because it's all views/HTTP/etc), I refactor various things into their own (side-effect-free functions) so I can then use Hypothesis.
Plus, it's the only thing that doesn't suffer from the "you can't find the bug you just introduced" disease, where you're (by definition) blind to the problems you don't know are there. We usually tend to test the things we wrote the code to guard against, but Hypothesis finds the actual bugs.
Great work.