-
Notifications
You must be signed in to change notification settings - Fork 106
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
passing any checkerargs results in only a single test case running #279
Comments
Not any checker args, just the ones that set |
I think QuickCheck might have the right idea of making this option a max discard ratio, not a max discard count. |
Honestly I don’t understand the meanings of any of these values. What is a ‘max successes’? Is that the # of times the test is allowed to succeed? And if it succeeds one time beyond that, it fails? Likewise with the ‘max test case size’? How exactly does this value actually inform the sizes of the generators? To get this to work, I was basically just cargo culting your example code which uses a max discard of zero (which seems to make sense). Why do you need to discard a test case that passes? Why do you need to discard any test cases? |
Oh, sorry. I missed part of your explanation wrt max discard. So, if max discard is set to n and I have discarded n times, I should still be fine. It should be on the attempt to discard n+1 times that a problem occurs. This reasoning has the nice property of making the zeroth case work properly. |
Oh dear, then that's a bug in the sample code or in the semantics of this argument. |
P.S. if it weren't clear, here is where I cargo culted from: SwiftCheck/Sources/SwiftCheck/Check.swift Lines 24 to 29 in cf99580
|
Yeah, so I see two problems here:
|
Yea, I prefer 1 but will change to a value of |
e.g.,
i've tried a bunch of different values for
maxAllowableSuccessfulTests
andmaxTestCaseSize
yet my property body only runs once when the defaults are overridden.The text was updated successfully, but these errors were encountered: