-
Notifications
You must be signed in to change notification settings - Fork 27
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
Output seed information when checking
fails during generation
#78
Comments
After poking at this a little bit, it seems that we'd need upstream changes in test.check to make this work. When doing a |
Okay; we can leave this open and you or somebody else could pursue those changes in test.check. |
@gfredericks I took a shot at it. #80 What do you think about the test.check changes? Worth proposing on TCHECK-159? |
I'm not maintaining test.check anymore, so my opinion doesn't matter too much. |
Firstly, thanks @gfredericks for all the years of maintainership. In my book, test.check under your direction has been the most successful Clojure library of them all. All that to say, I really appreciate your work and congratulations on an amazing tenure. Secondly, my hit rate on getting patches merged from JIRA is probably about 5%. Would you consider a patch to test.chuck with this definition of |
Thanks for the kind words! Copypasting the definition of quickcheck into this library sounds like it could gen gnarly in the future if implementation details in test.check change. Is there no way to do this in test.chuck, perhaps by wrapping generators with a fmap that has a try/catch, and then wrapping the checking expression similarly? That'd amount to turning a generator-exception into a test failure, which is a bit weird, but would at least result in the seed being output. |
@gfredericks great idea, I will try it. |
If generation fails during the bindings phase of the
checking
macro any seed information is lost. This makes it difficult to reproduce failures.Produces this output:
The text was updated successfully, but these errors were encountered: