Comment

Comment by epgui

I have used Python's `hypothesis` as well, and I wish it were better. We had to rip it out at work as we were running into too many issues.

I have also used Haskell's `QuickCheck` and Clojure's `spec` / `test.check` and have had a great experience with these. In my experience they "just work".

Conversely, if you're trying to generate non-trivial datasets, you will likely run into situations where your specification is correct but Hypothesis' implementation fails to generate data, or takes an unreasonable amount of time to generate data.

Example: Generate a 100x25 array of numeric values, where the only condition is that they must not all be zero simultaneously. [1]

[1] https://github.com/HypothesisWorks/hypothesis/issues/3493

parent epgui 1 year ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton