Comments (4)
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.
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.
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.
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)
- need EXPECT_THAT and matchers from googlemock HOT 2
- need to get rid of the use of UnitTestAccessor in the event API samples before releasing 1.4.0 HOT 1
- ParseGoogleTestFlagsOnlyImpl implementation issue HOT 2
- Assertion messages printed twice on Windows CE HOT 2
- Long assertion messages don't show up on Windows CE HOT 3
- Elapsed time on Windows CE does not work correctly HOT 3
- Patch to fix MinGW compilation HOT 3
- Using RecordProperty without XML output HOT 1
- RecordProperty support for double/bool/char/etc HOT 1
- need to check whether our uses of GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_ are OK HOT 2
- GCC compilation error "error: conversion from `void' to non-scalar type" HOT 4
- Even if all tests using a fixture class are DISABLED_ SetUp() still seems to be run. HOT 7
- Build Issues in VS2005 HOT 2
- Ehance upload_gtest.py to support http proxy HOT 1
- Adding Symbian Project Definition File HOT 7
- Extended SCOPED_TRACE HOT 4
- ASSERT_DOUBLE_EQ(0.0, x) fails for 0 < x < std::numeric_limits<double>::epsilon() HOT 1
- ASSERT_STRCASEEQ and ASSERT_STRCASENE macros should compare strings consistently across platforms
- Should report the source file location of the TEST that throws an exception
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from googletest.