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

Suppress printing the console log content after the test failures #42

Open
prantlf opened this issue May 20, 2018 · 1 comment · May be fixed by #40
Open

Suppress printing the console log content after the test failures #42

prantlf opened this issue May 20, 2018 · 1 comment · May be fixed by #40

Comments

@prantlf
Copy link

prantlf commented May 20, 2018

Testing frameworks like Backbone, which do not litter the console with logs gives conscious and legible output - the summary first and then the list of failures, if there were any. However, when dealing with legacy code, which uses console.log, many "useless" log lines may follow the failure summary. It makes looking up the failures more difficult by scrolling up the console to find the failures.

How about introducing a new option like suppressBrowserLogs to suppress the log printing?

@whyboris
Copy link

@prantlf -- good idea, it's probably also very easy to implement.
I've forked karma-nyan-reporter to create karma-helpful-reporter

Which has a lot of configuration options. Adding one more would be easy: a PR is welcome 🙇

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