-
Notifications
You must be signed in to change notification settings - Fork 107
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
Allow hspec-hedgehog
to produce more compact output
#522
Comments
@moodmosaic that's all that I have on my wish list. After that, I'm pretty happy with the output. |
Planning for a release after #525. 🎉 |
@ChickenProp we could still include the "shrink path", I guess. From what I understand, this only affects performance. Do you regularly run into situations where this makes a practical difference? |
I regularly run into situations where it makes a big practical difference to performance :p Like, it can be several minutes versus a few seconds. But also, it can really help debugging. I often use print or trace statements to help, and if I don't use the shrink path, the last lines of output are often from tests that passed. Or I'll do stuff with a database, and then the database state at the end has been changed by tests that passed. With the shrink path, I know the last attempt failed, which is super helpful. (If I want that with quickcheck, I kind of have to binary search to find the lowest (I did notice that the shrink path is also visible at the top of the failure message, so there's that too. But it's a lot easier for me if it's at the bottom.) |
It's gone now, see screens, but we could bring it back.
Given that the output will be much more compact now (mostly due to #505), does this still matter? |
Oh, right. My inclination would be to leave it, or at any rate not to disable it along with the
I think so, yeah. Sometimes there'll be annotations which presumably make the output big again, but even apart from that, I think it's easier to visually scan for if I know it's near the bottom. |
@sol, @ChickenProp, happy to plan for a release and/or also wait until this is resolved/closed. Let me know if there's anything I can do to help. |
@ChickenProp we will keep the shrink path for now #531. The long-term plan is to add more options to Hspec to allow you to get the full reproduce message and possibly also to allow skipping to specific hedgehog tests. |
@moodmosaic after #531 I think we are good to go. |
So I'd still be happier if there's some way (e.g. environment variable) to get the full reproduce message when using hspec-hedgehog. There's a question in my mind of whether that counts as hedgehog's responsibility or hspec-hedgehog's? That is, I could imagine hedgehog having environment variables to set the config, and I could imagine them either being defaults or overriding what the programmer passes in. (I lean towards the latter, and I think that could be implemented with a minor version bump.) But it's not clear hedgehog needs that. If the normal usage is that At any rate, I think this is a clear improvement to hedgehog as-is, and I think a release after #531 makes sense. |
That was my line of thought.
Great 👍 @moodmosaic I guess that means "yes, we can move forward with a release" after #531. |
@sol, @ChickenProp, thank you for the feedback. 💯 #531 is just merged. 🎉 |
Can be closed once we close #534. |
This requires:
recheckAt
-message #519Before:
After:
The text was updated successfully, but these errors were encountered: