Closed BebeSparkelSparkel closed 5 months ago
@Bodigrim Any thoughts on pulling this fix?
Probably yes.
Den ons 29 maj 2024 16:41William Rusnack @.***> skrev:
@.**** commented on this pull request.
In quickcheck/Test/Tasty/QuickCheck.hs https://github.com/UnkindPartition/tasty/pull/419#discussion_r1619018183 :
tm <- QC.newTerminal (const $ pure ())
- (\progressText -> yieldProgress emptyProgress { progressPercent = parseProgress progressText })
- $ \progressText -> do
- ms <- readIORef maxSuccess
- yieldProgress emptyProgress { progressPercent = 100 * parseProgress progressText / ms }
Does the callback remove the need for unsafePerformIO?
— Reply to this email directly, view it on GitHub https://github.com/UnkindPartition/tasty/pull/419#discussion_r1619018183, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACBPPQP4IHXMZ6BMISXPZSLZEXSLBAVCNFSM6AAAAABHHYAJUCVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDAOBVGYZTCMZZHA . You are receiving this because you were mentioned.Message ID: @.***>
Then it would probably be worth changing
I wonder whether callback
would allow to avoid all Terminal
shenanigans here. Is it powerful enough?
Callbacks get both the state and the result so it should be.
@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.
Yes, I do not know how to test this besides the visual I added.
Also, with callbacks should shrinks be reported in the progress?
@BebeSparkelSparkel looks good to me modulo two suggestions above.
Done pull
Thanks, that's great.
closes #402