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 152156

Summary: Classes Test Packages run not only as jUnit tests
Product: java Reporter: jalexoid <jalexoid>
Component: JUnitAssignee: Victor Vasilyev <vvg>
Status: RESOLVED INVALID    
Severity: blocker CC: gsporar
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://jalexoid.blogspot.com/2008/11/netbeans-65-vs-eclipse-34-ganymede-on.html
Issue Type: ENHANCEMENT Exception Reporter:

Description jalexoid 2008-11-02 15:31:51 UTC
Currently all classes that are in Test Packages may be run only via jUnit.

In popup menu over any class in Test Packages:
  Add separator for jUnit tests.
  Rename Run file menu element to Run as jUnit test. (Same for Debug and profile)
  Add a Run menu element to popup if class contains main method and run it same as any other class in Source Packages
with main method. (Same for Debug and Profile)

* Unfortunately aside from proposing some enhancements I am under contract obligations, that forbid me to contribute any
code.
Comment 1 Peter Pis 2008-11-02 21:31:25 UTC
Reassigning to junit.
Comment 2 Yulia Novozhilova 2011-04-25 14:31:40 UTC
Currently there are following items in popup menu: 
Run File 
Debug File
Profile File
Test File
Debug Test File

"Run File" runs a class the same way as any other class in Source Packages in case if it contains main method.

Closing as invalid. Please feel free to reopen if you disagree.