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

Quiet output #358

Closed
GoogleCodeExporter opened this issue Jul 28, 2015 · 8 comments · Fixed by #2751
Closed

Quiet output #358

GoogleCodeExporter opened this issue Jul 28, 2015 · 8 comments · Fixed by #2751

Comments

@GoogleCodeExporter
Copy link
Contributor

There is no flag to pass to InitGoogleTest that results in minimal console 
output. Such a flag would tell gtest to only output errors from failed tests, 
the number of tests passed, and the total time elapsed. This flag is necessary 
if one wants to compile all tests into a executable to be run as a post-build 
step.

Original issue reported on code.google.com by [email protected] on 4 Mar 2011 at 8:41

@GoogleCodeExporter
Copy link
Contributor Author

This can be done by the user by implementing a simple event listener that 
prints whatever information the user wants.  See the "advanced guide" wiki for 
how to do it.

Also, please send feature requests to the mailing list instead of the issue 
tracker.  Thanks!

Original comment by [email protected] on 9 Mar 2011 at 7:30

  • Changed state: WontFix
  • Added labels: OpSys-All, Priority-Low, Type-Enhancement, Usability
  • Removed labels: Priority-Medium, Type-Defect

@GoogleCodeExporter
Copy link
Contributor Author

Thank you!

Original comment by [email protected] on 28 Apr 2011 at 4:09

@joshkel
Copy link

joshkel commented Mar 7, 2017

A couple of semi-standard solutions that have come out since this issue was first raised:

  • This gist contains a sample ConfigurableEventListener decorator that allows selectively enabling or disabling output types.
  • My Google Test Pretty Printer significantly shortens GTest's output.

@metal4people-zz
Copy link

metal4people-zz commented Jan 23, 2019

Still believe this feature should be available out of the box, because there are a lot of tests already written and to achieve the behavior you would need to add listener to all of them.
Instead having commandline option --quite or something like that would save a lot of time.

@gennadiycivil
Copy link
Contributor

Thank you very much for this report. The best way to approach this would be to create a proper PR and submit it for consideration.

@metal4people-zz
Copy link

No problem. You know I've found better way to reach my aim.
I think most of people needs the same is to use: --gtest_repeat and --gtest_break_on_failure.
For example: --gtest_repeat=100 --gtest_break_on_failure will run tests 100 times, but once something fails it stop tests execution.
Very convenient.
Thank you guys!

@gennadiycivil
Copy link
Contributor

gennadiycivil commented Jan 28, 2019 via email

@moof2k
Copy link

moof2k commented Nov 27, 2019

+1 for this being an out-of-the-box feature

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

Successfully merging a pull request may close this issue.

5 participants