chrissydavid82 / swtoolkit

Automatically exported from code.google.com/p/swtoolkit
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

GoogleTest output is not displayed until all test cases complete #11

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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