Coder Social home page Coder Social logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
Hi Peter,

You can use the event listener API to override the default text output: 
http://code.google.com/p/googletest/wiki/GoogleTestAdvancedGuide#Extending_Googl
e_Test
_by_Handling_Test_Events

Please email [email protected] if you have further questions.

Original comment by [email protected] on 5 Oct 2009 at 9:01

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

from googletest.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
Zhanyong.wan

I saw the Adv.Guide section you mentioned, and it does claim that, and I'm sure 
it
can but the examples given don't directly have to do with suppressing and 
replacing
default outputs.  So I'll have to study that section more carefully to learn 
how to
use event listeners to do it.

Thanks, Peter Schwenn

Original comment by [email protected] on 5 Oct 2009 at 9:13

  • Added labels: ****
  • Removed labels: ****

from googletest.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
Zhanyong.wan

What I'm trying to suppress or replace is not particular outputs, or "most" of 
the
default text output, but the Console App nature of Google Test -- i.e. its ever
having a default output stream of "console out" or ever taking any action that 
would
result in the opening of a command window.

Perhaps you could help me by verifying where the defaults for stdout and stderr 
are
setup in the Google Test source code.  I suppose they may be in the <iostream>
header, but I do not find them.

Thank you, Peter Schwenn

Original comment by [email protected] on 6 Oct 2009 at 4:39

  • Added labels: ****
  • Removed labels: ****

from googletest.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
Dear Zhanyong Wan and anyone else interested in getting Gtest to run as a 
Visual 
Studio post-build-event even under Team Build,

I have been able to inhibit my Gtest app executable from popping up a Command 
Window 
or a Windows window by re-defining it as a Windows app rather than a Console 
app (in 
Visual Studio terms), and then gutting the InitInstance routine which 
instantiates a 
startup window.

(I have not been able to verify yet that my Gtest app is happy to run in a 
windowless environment but it should be.)

This means that Gtest can be used in the automating context of MS Team Build, 
for 
example, to unit test "unmanaged" C++ code or mixed managed&unmanaged C++ 
projects, 
which Microsoft Build tool's unit testing frameworks cannot do.

Peter Schwenn

Original comment by [email protected] on 7 Oct 2009 at 11:46

  • Added labels: ****
  • Removed labels: ****

from googletest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.