title: Reducing output of gtest, to look similar to output of cxxtest
body: <p>I have a set of unit tests using gtest as framework.</p>
  
  <p>Build, and execute, and the output looks like this :</p>
  
  <p><img src="https://i.stack.imgur.com/hye5h.png" alt="gtest output"></p>
  
  <p>I'd like to have the output similar to the output when using cxxunit (<code>.</code> when test pass, detail error when it fails). If possibly, with colors.</p>
  
  <p>How to do this?</p>
  
  <hr>
  
  <p>If I wasn't clear, I am looking for code and exact way how to do this.</p>
  
  <hr>
  
  <p>The output should be something like :</p>
  
  <pre><code>Executing dummy_tests .....
  ../code/app/unit_tests/unittest_dummy.cpp:25: Failure
  Value of: 2
  Expected: 1
  ..
  FAILED
  </code></pre>
  
  <hr>
  
  <p>I am trying to use <a href="http://code.google.com/p/googletest/wiki/AdvancedGuide#Defining_Event_Listeners" rel="nofollow noreferrer">this example</a> and create custom listener. But the example doesn't have colorful output, and it prints lots of messages to the output.</p>
  
  <p>As for the colorful output, developers implemented <code>ColoredPrintf()</code> function.</p>
  
  <p>As for the particular problem I am facing is lack of documentation :</p>
  
  <ul>
  <li>how to get information about whole tests suite at the program start? (I guess in the <code>OnTestProgramStart()</code> method)</li>
  <li>how to get information about whether a test failed? (<code>OnTestProgramEnd()</code>? or other method?)</li>
  </ul>