-
Notifications
You must be signed in to change notification settings - Fork 1.4k
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Improve failure output #891
Comments
The main advantage of the current output is that it remains a valid stack trace. The only difference is that paths are relative to the basedir instead of absolute, and we filter some irrelevant ones. I think there are some advantages to keeping to the standard, namely for external tooling (WebStorm provides clickable stack traces). |
Meh - scratch that, we also remove the leading |
Working on this—looks good to me. |
Could we do this to make stack trace clickable in iTerm2? |
@jamestalmage Yes, I was thinking the same. We should definitely do that. |
BTW are we doing this for the type of errors shown or also the ones under |
@sotojuan Yes, if they have output, they should be in this style. |
With the following:
I get the following using the default reporter:
The current output is a bit messy and ambiguous. For example the stack trace indent is different for the two lines.
I've done a quick mockup of what I'd like it to look like:
Note that I reduced the indent of
2 failed
from 3 to 2 spaces. And I changedfailed with "foo"
toError: foo
to make it clear it failed with an error and what type of error. Could be a ReferenceError for example which would be lost in the previous output.Happy to improve upon it. I want our failure output to be as readable as possible.
Here's what I used to generate the mockup:
Thoughts?
Is there a way we could improve the
Test.fn
name in the stack trace?Should we place the filename:line:column first? Usually the function name isn't very useful, so it's usually the line:column you care about.
The text was updated successfully, but these errors were encountered: