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 174296 - Junit Results UI has weird behavior in Netbeans 6.8 M2
Summary: Junit Results UI has weird behavior in Netbeans 6.8 M2
Status: RESOLVED DUPLICATE of bug 171050
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 6.x
Hardware: PC All
: P2 blocker (vote)
Assignee: Victor Vasilyev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-11 03:09 UTC by iceman81
Modified: 2009-10-13 13:09 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 iceman81 2009-10-11 03:09:15 UTC
In Netbeans 6.8 M2, I see the following behavior in the Junit Results window:

If you run "Debug File" or "Debug Test File", it runs all the test methods in the Junit Test class; and on right click
on any of the test method names in the Test Results window, you get 3 Options:

Go To Source
Run Again
Debug

All the above options seem to work fine as expected.

Now, if you run "Run File" or "Test File", all the test methods in the class are executed but now on right click in the
Test Results window, you only get one option:

Go To Source

And this option does not seem to work at all. I would think that the option to Run again would be available when you use
Test File or Run File as well.

Also, in both "Test File" and "Debug Test File" it seems that you can re-run a method only once as the options disappear
after re-running the test method once. 

Go To Source

and again this option does not seem to work. I would think that even if I re-run a method all the options would still be
available to me.
Comment 1 iceman81 2009-10-11 03:10:28 UTC
It would be very helpful if someone could clarify the expected behavior as it seems very unintuitive at the moment.
Comment 2 pribyl 2009-10-13 13:09:52 UTC
Hi, thanks for the report. 
I'll add it as a duplicate of previously reported issue about inconsistency in Test Results window. 
I guess those problems are similar - popup menu options are dependent on the way the test is run, and as you say, it is
quite unintuitive.

*** This issue has been marked as a duplicate of 171050 ***