You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
letis_bad_data : ... -> boolfdata=if is_bad_data data
thenCrowbar.bad_test ()else ... (* do test *)let()=Crowbar.add_test ~name:"test f" [generator] f
I mean if Crowbar.bad_test is hit some number of times, it would be better to fail at some point, to give feedback to the caller. At the time of writing, Crowbar doesn't terminate. For example Haskell's quickcheck does this, along the lines of giving up generating data after X trials and only Y successes.
As this is a breaking change (it could make tests that pass now (slowly though) fail), care should be taken regarding adoption.
Thanks for your work on crowbar ❤️
The text was updated successfully, but these errors were encountered:
If a test is too restrictive:
I mean if
Crowbar.bad_test
is hit some number of times, it would be better to fail at some point, to give feedback to the caller. At the time of writing,Crowbar
doesn't terminate. For example Haskell'squickcheck
does this, along the lines ofgiving up generating data after X trials and only Y successes
.As this is a breaking change (it could make tests that pass now (slowly though) fail), care should be taken regarding adoption.
Thanks for your work on crowbar ❤️
The text was updated successfully, but these errors were encountered: