dgarlitt / karma-nyan-reporter

Nyan Cat style reporter based on the Mocha version
MIT License
169 stars 19 forks source link

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

Open prantlf opened 6 years ago

prantlf commented 6 years ago

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 commented 5 years ago

@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 🙇