type_class icon indicating copy to clipboard operation
type_class copied to clipboard

Clarification regarding generators

Open cognivore opened this issue 4 years ago • 1 comments

Oddly enough, both generators in the documentations and the generator I've seen in Maybe are ignoring their argument and use Enum.random().

This seems to be an anti-pattern in property-based testing because it relies on reproducibility of a random test that caught an error.

I assume that the underlying plumbing somehow sets a global seed for Enum.random(), perhaps mix test even does it itself (hence "Randomized with seed NNN" messages at the end of the tests), but in my opinion a clarification is required here.

cognivore avatar Oct 11 '21 11:10 cognivore

Thank you for submitting an issue! It means a lot that you took the time -- it helps us be better 🙏

github-actions[bot] avatar Oct 11 '21 11:10 github-actions[bot]