4 ms·
Best testing library I've used yet is https://github.com/HypothesisWorks/hypothesis-python https://github.com/HypothesisWorks/hypothesis-python. YMMV, of course
by rcarmo 10y ago
Best testing library I've used yet is https://github.com/HypothesisWorks/hypothesis-python https://github.com/HypothesisWorks/hypothesis-python. YMMV, of course, but I've always wanted a little more smarts than py.test...
- StavrosK 10y agoHypothesis isn't a testing framework, it generates data for your testing framework to test. I use it with unittest and love it. I'm sure it can run equally easily with py.test.
- rcarmo 10y agoIt does. I meant testing as in a process, not as in its specific purpose (and even then it's still ambiguous in English).
- StavrosK 10y agoAh, yes, it is pretty great for that. I especially love it for testing algorithm-heavy code, as it's not very well suited to code that's user-interaction-heavy.
- fermigier 10y agoHypothesis is not a test runner, it's a test generator. Both are best of breed, and complementary, IMHO.
- Twirrim 10y agoI'm always impressed with the bugs Hypothesis can find :D Test generators are valuable things, well worth using in combination with a good test suite.