Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Not A Problem
-
2.10
-
None
-
None
-
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 .