Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-1859

Latest version buffers all stdout, making it unreadable whilst tests are running

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.0.0-M5
    • Fix Version/s: None
    • Component/s: Maven Surefire Plugin
    • Labels:
      None

      Description

      This test class:

      public class StdoutIncrementTest {  
        @Test
        public void testOutput() throws Exception {
          for (int i = 0; i < 1000; ++i) {
            System.out.println("Iteration " + i);
            Thread.sleep(1000);
          }
        } 
      }
      

      With this configuration:

            <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-surefire-plugin</artifactId>
              <version>3.0.0-M5</version>
            </plugin>
      

      there is no output whilst the test is running.

      With this configuration:

            <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-surefire-plugin</artifactId>
              <version>3.0.0-M4</version>
            </plugin>
      

      the output comes out roughly once per second.

      This doesn't matter for running tests, but it makes debugging tests a real pain.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tibordigana Tibor Digana
                Reporter:
                yaytay Yaytay
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: