Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 11 by
ddor...@google.com: GoogleTest output is not displayed
until all test cases complete
http://code.google.com/p/swtoolkit/issues/detail?id=11
What steps will reproduce the problem?
1. Build a GoogleTest unit test executable using ComponentTestProgram()
2. hammer run_all_tests
What is the expected output? What do you see instead?
I expect the tests to build then run. I expect the output from GoogleTest
to be displayed as the tests run so that I can catch failures early without
waiting for all tests to complete. It would also be nice if the colored
GoogleTest output could be displayed.
What I see is a long pause in output until all test cases have run. At that
point, all the output is dumped all at once in monochrome.
What version of the product are you using? On what operating system?
0.9.1
Windows
MSVC 2005
Python 2.4
Please provide any additional information below.
The problem appears to be CommandOutput, which sets the output of
RunCommand to a variable named output. I put print statements in the code
as shown below and 'done_reading' is not displayed until all tests have
completed execution.
In RunCommand's _ReadThread():
print 'reading'
new_out = child.stdout.read()
print 'done_reading'
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings