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.
Currently, when running a file (Shit+F6) in the Test Sources, the project attempts to run the currently selected class using JUnit. However, for classes with main() method which are not JUnit tests, it would be useful to run the main() method instead. Filing on behalf of Mark.deReeper at sun.com.
This has sat dormant for a long time. Doing this in eclipse (for example) is trivial. Simply providing the option of adding the test classpath entries to a run configuration would do the trick...
Another example for the need of a main class under test: stress tests.
*** This issue has been marked as a duplicate of 119922 ***