title: System.out.print doesn't output to console when running from Junit
body: <p>When running:</p>
  
  <pre><code>public static void main(String... args) throws InterruptedException {
      while (true) {
          System.out.print(".");
          Thread.sleep(200);
      }
  }
  </code></pre>
  
  <p>vs. when running same code from junit: </p>
  
  <pre><code>@Test
  public void test() throws Exception {
      while (true) {
          System.out.print(".");
          Thread.sleep(200);
      }
  }
  </code></pre>
  
  <p>There is different behaviour:<br>
  for the main() - the output is displayed as expected, as the process runs ("." -> ".." -> "...")</p>
  
  <p>however, for JUnit, when running same piece of code, No output is displayed as the process runs - It's flushed only when quitting the test.</p>
  
  <p>Why does this happen? Is there any way to workaround it if I need the status to be shown in console during the test run?</p>
  
  <p>I need to print to the same line, so using println wouldn't suit.</p>