Maven Surefire
  1. Maven Surefire
  2. SUREFIRE-798

JUnit47 provider could print immediatly the test class name, as JUnit4, instead of waiting for the test to finish.

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Not A Problem
    • Affects Version/s: 2.10
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      all

      Description

      With a test that takes some time, for example

      public class Test0 {
        @Test
        public void testT0() throws Exception {
          Thread.sleep(6000);
        }
      }
      

      With JUnit4, we have first

      Running Test0

      Then, 6 seconds later

      Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.002 sec

      With JUnit47, we wait for 6 seconds, then the two lines appear simultaneously.

      The former behavior is better, because it allows to kill the test if we know that this test should not take so long. It also gives the feeling that you know what's going on .

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Nicolas Liochon
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development