Hacker News new | ask | show | jobs
by tcbasche 2684 days ago
- If it's a straight-forward pure function, I tend to use Hypothesis[1] to pile in random inputs. It's a great tool for coming up with cases humans wouldn't normally think of (I also wrote a blog post about this [2])

- If there was a show-stopping bug in production, I like to go back and write a test that covers that case (even if it was fixed).

- However in most cases, I cover off the typical use cases and I find, as another commenter says, it's "good enough".

[1] https://hypothesis.readthedocs.io/en/latest/ [2] https://medium.com/@thomas.basche/testing-with-hypothesis-26...