-
Notifications
You must be signed in to change notification settings - Fork 108
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
Report Test.Hedgehog.Seed tests individually #214
Conversation
When these fail, the counterexample is not particularly helpful:
We can't re-check just one of the tests, despite what Hedgehog says. It expects the I suggest using |
I could also just merge this if you like, since this is in the test tree and you did all the work to get this test passing in the first place. 😄 Up to you! |
Before ━━━ Test.Hedgehog.Seed ━━━ ✓ prop_avoid_pathological_gamma_values passed 1 test. ✓ 1 succeeded. After ━━━ Test.Hedgehog.Seed ━━━ ✓ prop_avoid_pathological_gamma_values → Seed 15210016002011668638 12297829382473034411, passed 1 test. ✓ prop_avoid_pathological_gamma_values → Seed 11409286845259996466 12297829382473034411, passed 1 test. ✓ prop_avoid_pathological_gamma_values → Seed 1931727433621677744 12297829382473034411, passed 1 test. ✓ prop_avoid_pathological_gamma_values → Seed 307741759840609752 12297829382473034411, passed 1 test. ✓ prop_avoid_pathological_gamma_values → Seed 8606169619657412120 12297829382473034413, passed 1 test. ✓ prop_avoid_pathological_gamma_values → Seed 13651108307767328632 12297829382473034413, passed 1 test. ✓ prop_avoid_pathological_gamma_values → Seed 125750466559701114 12297829382473034413, passed 1 test. ✓ prop_avoid_pathological_gamma_values → Seed 6781260234005250507 12297829382473034413, passed 1 test. ✓ prop_avoid_pathological_gamma_values → Seed 15306535823716590088 12297829382473034405, passed 1 test. ✓ prop_avoid_pathological_gamma_values → Seed 7344074043290227165 12297829382473034405, passed 1 test. ✓ prop_avoid_pathological_gamma_values → Seed 9920554987610416076 12297829382473034405, passed 1 test. ✓ prop_avoid_pathological_gamma_values → Seed 3341781972484278810 12297829382473034405, passed 1 test. ✓ prop_avoid_pathological_gamma_values → Seed 12360157267739240775 12297829382473034421, passed 1 test. ✓ prop_avoid_pathological_gamma_values → Seed 600595566262245170 12297829382473034421, passed 1 test. ✓ prop_avoid_pathological_gamma_values → Seed 1471112649570176389 12297829382473034421, passed 1 test. ✓ prop_avoid_pathological_gamma_values → Seed 8100917074368564322 12297829382473034421, passed 1 test. ✓ 16 succeeded.
2165131
to
1acafb6
Compare
Hmm, but we have a
Absolutely. (Done, force pushed.)
Sure, go ahead if the image below looks good with the |
, withTests 1 . property $ do | ||
footnote $ "expected: " ++ show expected | ||
footnote $ "actual: " ++ show actual | ||
expected === actual |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks a bit ugly to me having all these inlined (lines 74/75 up to 77). Happy to move those out separately if you also feel the same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I gave this a second thought and I think we should not merge it, so I'm closing it. I actually like the fact that we can use Hedgehog to run fully deterministic tests, but the output looks a bit weird.
- We can only recheck the whole set
- We can add footnotes but that won't allow us to recreate a particular test case from the set
@thumphries, thanks for your feedback 👍
@thumphries, those deterministic tests added in #207, they've been reported as 1 test which is incorrect:
It turns out that
Group
is all we need, since it's really a named collection of property tests:So I did this, which is actually cool for fully deterministic tests:
/cc @jystic, @thumphries