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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 3.0.0-M5
    • None
    • Maven Surefire Plugin
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment