-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Some reporters don't show reason for failed assertion #991
Comments
I don't see how In a case where you are simply asserting the equality of two strings, then you don't need to know more. It's obvious. The tap reporter has to output more data though because it's a protocol. |
What's missing is the 2nd argument provided to I would like to see the error detail include this message. Perhaps something like this:
|
Alright. I see your point. It would good if you could provide a pull request for the change, then we'll take it from there :-) |
Why not look for spec's name? e.g. search for: "shows reason for failed assertion" |
That's not sufficient. The spec name only tells me which test failed, not which assertion in the test failed. "ok" and "error" might not be hard to find, but when you're given the error "expected undefined not to be undefined" and you've used |
The test below doesn't show the reason for the failed assertion when using the
spec
reporter, other than that the expectation didn't match. Thetap
reporter does show the reason.tap
outputspec
outputpackage.json
test/aTest.js
:The text was updated successfully, but these errors were encountered: