Skip to content
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

fixed quickcheck percent done error #419

Merged

Conversation

BebeSparkelSparkel
Copy link
Contributor

closes #402

@BebeSparkelSparkel
Copy link
Contributor Author

@Bodigrim Any thoughts on pulling this fix?

Copy link
Collaborator

@Bodigrim Bodigrim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know internals of QuickCheck well enough. @MaximilianAlgehed could you possibly review?

quickcheck/Test/Tasty/QuickCheck.hs Outdated Show resolved Hide resolved
@MaximilianAlgehed
Copy link

MaximilianAlgehed commented May 29, 2024 via email

@BebeSparkelSparkel
Copy link
Contributor Author

Then it would probably be worth changing

@Bodigrim
Copy link
Collaborator

I wonder whether callback would allow to avoid all Terminal shenanigans here. Is it powerful enough?

@MaximilianAlgehed
Copy link

Callbacks get both the state and the result so it should be.

@Bodigrim
Copy link
Collaborator

Bodigrim commented Jun 9, 2024

@BebeSparkelSparkel do you need any help to make further progress here? I'd like to make a release of tasty and stuff in upcoming weeks.

@BebeSparkelSparkel
Copy link
Contributor Author

Yes, I do not know how to test this besides the visual I added.

Also, with callbacks should shrinks be reported in the progress?

quickcheck/tests/test.hs Outdated Show resolved Hide resolved
@Bodigrim
Copy link
Collaborator

Bodigrim commented Jun 9, 2024

@BebeSparkelSparkel looks good to me modulo two suggestions above.

BebeSparkelSparkel and others added 2 commits June 9, 2024 12:11
Co-authored-by: ˌbodʲɪˈɡrʲim <andrew.lelechenko@gmail.com>
Co-authored-by: ˌbodʲɪˈɡrʲim <andrew.lelechenko@gmail.com>
@BebeSparkelSparkel
Copy link
Contributor Author

Done pull

@Bodigrim Bodigrim merged commit 6eb9711 into UnkindPartition:master Jun 9, 2024
13 of 14 checks passed
@Bodigrim
Copy link
Collaborator

Bodigrim commented Jun 9, 2024

Thanks, that's great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Progress reporting for QuickCheck seems to report progress over 100%
3 participants