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 164079

Summary: Run Again not in context menu
Product: java Reporter: tboerkel <tboerkel>
Component: JUnitAssignee: Andrey Yamkovoy <kaktus>
Status: RESOLVED DUPLICATE    
Severity: blocker CC: mmirilovic
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://wiki.netbeans.org/NewAndNoteWorthyNB67#section-NewAndNoteWorthyNB67-JUnitIntegration
Issue Type: DEFECT Exception Reporter:
Attachments: Project files

Description tboerkel 2009-04-29 15:06:00 UTC
In the NB 6.7 Beta description, there is a screenshot of the context menu for failed tests with the following actions:
- Go to Source
- Run Again
- Debug
- View Difference

I only have:
- Go to Source
- View Difference
Comment 1 Andrey Yamkovoy 2009-04-29 15:32:49 UTC
The problem is not all project types provides support for run/debug single test methods actions. For example Java
Application project provides them. So if the project provides such a actions then corresponding actions are available
from the test results. For some project types the appropriate issues already created.

Note there is an issue #161283 when "Compile On Save" for J2SE project is enabled.
Comment 2 tboerkel 2009-04-29 15:45:37 UTC
This *is* a Java Application project! Compile On Save is disabled.
Comment 3 Andrey Yamkovoy 2009-04-29 15:58:06 UTC
If so could you please provide the detailed steps to reproduce.
Comment 4 Marian Mirilovic 2009-04-29 17:20:59 UTC
I saw that as well, but sure about steps to reproduce .. had web application and unit tests for classes.
Comment 5 tboerkel 2009-04-30 07:38:29 UTC
We have a J2SE project. I run a test class. 1 test method fails. I look at the context menu of that test.

Should I attach the project files (whole project would be too big)?
Comment 6 Andrey Yamkovoy 2009-04-30 07:59:39 UTC
If your project is too big please attach the project files and test file.
By the way could you please check it with a newly created J2SE project (just create a Java Application, generate test
for Main class, run test and check the context menu in the results).
Comment 7 tboerkel 2009-04-30 08:38:28 UTC
It works OK with a fresh J2SE project. Attaching our project files.
Comment 8 tboerkel 2009-04-30 08:39:16 UTC
Created attachment 81274 [details]
Project files
Comment 9 Andrey Yamkovoy 2009-04-30 11:07:55 UTC
I made a mistake in my post. The issue #161283 is reproduced when "Compile On Save" for J2SE project is DISABLED.
So enable compile on save and the actions Run Again/Debug should appears for the test method node.

Closing as duplicate.

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