-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable QCheck2 shrinker with a parameter #232
Comments
On the one hand I'm supportive of this feature. On the other hand, to me this indicates short-comings of the QCheck2 shrinkers. |
I think I can extract one example pretty easily. One co-worker wrote a Merkle Tree or something, it shouldn't have too much dependency with our project. |
Well, you shouldn't trust my words. Anyway, I feel that we need it even if the generator is not that long. It's very situational but sometimes, no shrinker is the best solution. make_primitive
~gen:(fun rand -> generate1 ~rand gen)
~shrink:(fun _ -> Seq.empty) I'll try to tackle this. |
That'd be cool to disable the shrinker with a boolean in
Test.make
for instance. I don't know if we can already do this or if it's impossible but this might be a really good feature.It can happen that the test is wrong and since the generated value is really not-trivial, it takes a lot of time to shrink.
The text was updated successfully, but these errors were encountered: