-
Notifications
You must be signed in to change notification settings - Fork 110
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
Progress reporting for QuickCheck seems to report progress over 100% #402
Comments
🤔 I have never observed that with |
I don't think this is anything to do with |
Maybe |
Example of this problem
when using |
Error in this line tasty/quickcheck/Test/Tasty/QuickCheck.hs Line 267 in dcbf320
|
@BebeSparkelSparkel any idea what's exactly wrong with |
@Bodigrim Nothing wrong with the parser. QuickCheck prints the number of tests run and not the % done. Also, the number of tests to run cannot be gotten with out running at least one test because withMaxSuccess does not modify the state nor args but rather the returned intermediate result that has the field I was thinking that an IORef could be added that holds the number of tests to run and then I also added this issue since QuickCheck seems to not be a primary test framework but rather an add in tool. nick8325/quickcheck#399 |
@BebeSparkelSparkel I'm afraid it's hard for me to grasp. Can you possibly come up with a minimal standalone reproducer? |
OK, so the problem is that there are two ways to set number of tests to execute. One is to use But there is another way to set number of tests: apply @BebeSparkelSparkel is my understanding correct? |
Yes. I really don't like how withMaxSuccess accomplishes this. |
You can always add a |
@michaelpj could you please check whether HEAD fixes the issues you observed? |
Yep, that fixes it! Thanks @BebeSparkelSparkel |
I'm not really sure what's going on here, but I've seen progress reports from QuickCheck go over 100%. These are for tests where I've set
MaxSuccesses
to a higher number, so initially I thought we simply weren't dividing by the right thing. But the code seems to be doing the right thing so I'm not sure what's happening.cc @coot
The text was updated successfully, but these errors were encountered: