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

What to do with enormous stack traces? #2114

Closed
rhendric opened this issue Feb 16, 2016 · 1 comment
Closed

What to do with enormous stack traces? #2114

rhendric opened this issue Feb 16, 2016 · 1 comment

Comments

@rhendric
Copy link

I've seen stack traces that'd shock your eyelids. Hundreds of lines long, these majestic beasts reign supreme over node.js reporter output, overfilling all but the most capacious terminal scrollback buffers.

Something ought to be done! But what?

  • A reporter option for turning off stack trace printing?
  • A reporter option for truncating stack traces to the top n lines?
  • A core Mocha option that drops or truncates stack traces before passing them to the reporter?
  • We hate adding options; change the default behavior to truncating stack traces to the top n lines?
  • Something else?

I'll make the PR if a maintainer can point me in the desired direction!

@danielstjules
Copy link
Contributor

Have you tried https://github.com/rstacruz/mocha-clean ? We do some cleaning ourselves, but it's hard to be conservative with it (only eliminating mocha lines) when using compilers/transpilers.

Closing to direct discussion towards #545

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

No branches or pull requests

2 participants