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 161168 - Test Results window: test nodes recreated under suite node as tests run
Summary: Test Results window: test nodes recreated under suite node as tests run
Status: RESOLVED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Test Runner (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Andrey Yamkovoy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-25 16:54 UTC by Jesse Glick
Modified: 2009-04-28 18:53 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 2009-03-25 16:54:20 UTC
090324. Run a slow test class (i.e. suite). When a couple of test cases (i.e. method) have been run, expand the suite
node to see their nodes. When the next test case runs, the suite node collapses. This means that you cannot watch new
test case nodes being added as they run; you have to keep on clicking the suite node to see them.

I think the problem is that TestsuiteNodeChildren should be listening to changes and calling setKeys. Instead,
RootNodeChildren seems to be recreating the test suite nodes from scratch on every change, which is bad - it loses the
selection and expanded state.
Comment 1 Andrey Yamkovoy 2009-04-27 14:15:17 UTC
Fixed in the trunk.
Comment 2 Quality Engineering 2009-04-28 18:53:54 UTC
Integrated into 'main-golden', will be available in build *200904281401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/2acb665427f3
User: Andrey Yamkovoy <kaktus@netbeans.org>
Log: Fix for #161168 - Test Results window: test nodes recreated under suite node as tests run