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 - Run Again not in context menu
Summary: Run Again not in context menu
Status: RESOLVED DUPLICATE of bug 161283
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Andrey Yamkovoy
URL: http://wiki.netbeans.org/NewAndNoteWo...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-29 15:06 UTC by tboerkel
Modified: 2009-04-30 11:07 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Project files (19.61 KB, application/x-compressed)
2009-04-30 08:39 UTC, tboerkel
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***