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 - Classes Test Packages run not only as jUnit tests
Summary: Classes Test Packages run not only as jUnit tests
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Victor Vasilyev
URL: http://jalexoid.blogspot.com/2008/11/...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-02 15:31 UTC by jalexoid
Modified: 2011-04-25 14:31 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

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