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 114817

Summary: control-F6 does not run single unit test in freeform projects
Product: java Reporter: rstaff <rstaff>
Component: FreeformAssignee: Milan Kubec <mkubec>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P2    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description rstaff 2007-09-05 21:37:06 UTC
In a freeform project, go to Run -> Run File -> Test <File> from an editor tab containing a unit test.  Control-F6 is
listed as the shortcut for this action but it does not do anything.
Comment 1 Jiri Prox 2007-09-06 09:08:35 UTC
I've tested it with 5.5.1 and 6.0 and I have the menuitem  "Test file" disabled for freeform project. 
Comment 2 Milan Kubec 2007-09-06 14:21:38 UTC
That's because the functionality is not implemented for freeform project. You can select the test file in Explorer and
invoke action Run File.
Comment 3 rstaff 2007-09-06 16:42:49 UTC
The menu item works for me on source files that have been added under the Java sources - test package folders section of
the project properties editor, but pressing control-F6 does not do anything.  

However, when I right click on source files in the project explorer that are in test packages the run file (shift-F6)
action is completely disabled.
Comment 4 Milan Kubec 2008-10-17 09:05:18 UTC
Will be fixed by creating target for execution of single test class.

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