-
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
Checking macro prints not-falsey-or-exception? when fails #17
Comments
Looking into this now. |
hey @lackita would the implementation for |
@gfredericks |
Okay cool; I was working on such a thing at one point, so might be able to get it into the |
Alright, the specific trigger I'd find useful is one fired when a smaller
|
I'm curious if that's because you would print something on each smaller failure? |
I'm wondering because I've done such a thing myself in a test.check fork, and it ends up being very verbose, which makes me want to have a way to control verbosity. |
Actually, quite the opposite. I only want to report the smallest failure
|
why can't you do that just by waiting for the whole |
I wanted to present the actual failure report from those values, not the
|
oh right, and you need to distinguish it from the subsequent hundreds of test runs that passed before the test runner gave up. Got it. |
@lackita Any updates on this one? |
Sorry, I've been on vacation and haven't had much time to investigate.
|
Sure, no problem :) |
It looks like what happened is the spurious line was necessary when it was written, but then I later started capturing and propagating reports in another way and it became redundant. |
@lackita Thanks will check it out. :) |
Apparently this created a new issue (#23) so I will probably release when that gets figured out |
Reopening this since it caused test failures. |
@lackita Any updates on this? |
Sorry, I'll try to take a look on the commute home today. On Fri, Aug 28, 2015 at 7:51 AM, Mayank Jain notifications@github.com
|
@lackita Hey any update on this? |
@firesofmay Sorry, this got conflated with a conversations in #25, I believe the issue should be fixed now. |
No problem. Thanks for all your help :)
|
@firesofmay if you can confirm this fixes the problem I can make a release for it |
@gfredericks LGTM! 👍 |
Okay, this is released with |
The checking macro was not printing the test.check result in case of failures. This was happening since we changed the assertion on the result of `checking` to only check if there was an exception. That change was introduced to fix gfredericks#17, which is about the output showing a "expected: (not-falsey-or-exception? (:result result))" message. But as a side-effect of that change, we lost the test.check result from the output, which is very valuable. The fix is to simple print the test.check result in case of failure. This is part of what `do-report` would do if we called `(is (:result result) result)` but we avoid the other stuff that call would do (incrementing test result counters, output the expected vs actual result of the assertion, etc).
The checking macro was not printing the test.check result in case of failures. This was happening since we changed the assertion on the result of `checking` to only check if there was an exception. That change was introduced to fix gfredericks#17, which is about the output showing a "expected: (not-falsey-or-exception? (:result result))" message. But as a side-effect of that change, we lost the test.check result from the output, which is very valuable. The fix is to simple print the test.check result in case of failure. This is part of what `do-report` would do if we called `(is (:result result) result)` but we avoid the other stuff that call would do (incrementing test result counters, output the expected vs actual result of the assertion, etc). As a side-effect of this change, the `:pass` count in case of a failure was fixed. That can be seen by the change in the failure-detecion-test
The checking macro was not printing the test.check result in case of failures. This was happening since we changed the assertion on the result of `checking` to only check if there was an exception. That change was introduced to fix gfredericks#17, which was about the output showing an "expected: (not-falsey-or-exception? (:result result))" message. But as a side-effect of that change, we lost the test.check result from the output, which is very valuable. The fix is to simply print the test.check result in case of failure. This is part of what `do-report` would do if we called `(is (:result result) result)` but now we avoid the other stuff that call would do (incrementing test result counters, output the expected vs actual result of the assertion, etc). As a side-effect of this change, the `:pass` count in case of a failure was fixed. That can be seen by the change in the failure-detecion-test
Hi,
I was trying out checking macro and I found the output a little weird.
Here's a sample test:
And here's the output:
Why does it print this?
The text was updated successfully, but these errors were encountered: