This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 185518 - Times not displayed on test cases until after suite is finished
Summary: Times not displayed on test cases until after suite is finished
Status: RESOLVED DUPLICATE of bug 171279
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: Victor Vasilyev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-05 14:29 UTC by Jesse Glick
Modified: 2011-04-21 17:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2010-05-05 14:29:11 UTC
package p;
import org.junit.Test;
public class SomeTest {
    @Test public void t1() throws Exception {
        Thread.sleep(1000);
    }
    @Test public void t2() throws Exception {
        Thread.sleep(1000);
    }
    @Test public void t3() throws Exception {
        Thread.sleep(1000);
    }
    @Test public void t4() throws Exception {
        Thread.sleep(1000);
    }
}

When run, the subnodes "t1" etc. display "passed (0.0 s)" until the end - then the numbers change to "1.006 s" etc.

Even if <junit> does not report times until the suite ends, surely you could estimate the test times according to the elapsed time between the end of the previous test (or, for t1, start of suite) and the end of the current test?
Comment 1 Victor Vasilyev 2010-05-14 10:19:10 UTC
Unfortunately, not for 6.9.
Comment 2 Jesse Glick 2011-04-21 17:39:09 UTC

*** This bug has been marked as a duplicate of bug 171279 ***