Skip to content
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

Shorten stack traces on errors and failed tests #170

Closed
mataps opened this issue Dec 3, 2015 · 6 comments
Closed

Shorten stack traces on errors and failed tests #170

mataps opened this issue Dec 3, 2015 · 6 comments

Comments

@mataps
Copy link

mataps commented Dec 3, 2015

It would be very nice to have an option to see only useful error messages rather than showing the whole stack trace.

@brianium
Copy link
Member

brianium commented Mar 9, 2016

@mataps agreed. @ezzatron recently submitted a useful PR to the leo matcher library, maybe this could be integrated into the core.

@brianium
Copy link
Member

brianium commented Mar 9, 2016

or something similar

@ezzatron
Copy link
Contributor

ezzatron commented Mar 9, 2016

The Leo PR is a bit of a different situation, I think. In that particular case, the exception is always Leo's own exception, so it can be "trimmed" easily by looking at namespaces in the trace.

There are definitely some similarities though. I'll have a look, and see what can be done.

@ezzatron
Copy link
Contributor

ezzatron commented Mar 9, 2016

Actually, @brianium, thinking about it again, this issue is from before that Leo PR was accepted. It's quite possible it's referring to Leo's assertion stack traces, and may already be fixed.

@mataps Could you provide some example code / output?

@ezzatron
Copy link
Contributor

ezzatron commented Aug 8, 2016

Never mind my comment above. This is definitely still an issue outside of Leo as well. It shouldn't be a big deal to do something similar for Peridot's traces, like I did for Leo's in peridot-php/leo#18.

@ezzatron
Copy link
Contributor

Released in 1.19.0 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants