-
Notifications
You must be signed in to change notification settings - Fork 6
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
'GaveUp' when moving from tasty-hedgehog #9
Comments
|
Shrinking is not the only reason. It is mentioned in this comment on the But the most mystical part is that it was working before, and stopped working now, even though I didn't configure anything differently anywhere. The question is more about if there are some limits in |
The problem is that QuickCheck has a default discard ratio of 10, while hedgehog has a default discard limit of 100. I think we could make this more seamless by adding 90 to the QuickCheck configuration -> Hedgehog configuration. |
Thank you, this totally solves the problem. Would you like to see the PR with the changed config where |
Well, setting it directly to 100 is bad, because people will use things like So maybe what the logic should do is:
|
First of all, thanks a lot for this handy library! I am using it a lot already.
However, I am facing an issue when trying to move from
tasty-*
family tohspec-*
family.Specifically, I want to move from
tasty-hedgehog
tohspec-hedgehog
and the process itself is straightforward. I am not changing anyhedgehog
specific functions or any of theGen
s. But I getGaveUp
in my property tests now.I manage to fix a few such tests with downgrading some ranges in generators from
0 10
to0 5
, which seems odd.Do you know about any limitations
hspec-hedgehog
puts on discarding or any other limits? Would really appreciate your insights on why this regression can happen 🙏(This is a commit with the first attempts of migration to
hspec-hedgehog
: kowainik/tomland@8755e76 )The text was updated successfully, but these errors were encountered: