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'
Original issue reported on code.google.com by ddor...@google.com on 1 Dec 2009 at 2:15
Original issue reported on code.google.com by
ddor...@google.com
on 1 Dec 2009 at 2:15