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.
[ BUILD # : 200902231810 ] [ JDK VERSION : 1.6.* ] Steps to reproduce: 1. Create a Java Application project 2. Create two java classes 3. Create JUnit tests for both classes 4. Keep one JUnit class selected Expected behaviours (as in NB 6.5): A. User activates action "Run file" (Shift-F6) or "Debug file" (Ctrl-Shift-F5): the selected test should be run and progress handle must show "<Project> (test-single)" B. User activates action "Test file" (Ctrl-F6) or "Debug Test file" (Ctrl-Shift-F6): the selected test should be run and progress handle must show "<Project> (test-single)" Current results: A. A message "Class <x> does not have a main method" and test isn't run/debugged B. Test is run/debugged, but the progress handle shows "<Project> (test)" - can't tell if all tests are run or only a single one Observation: A. This can be a new behaviour, to allow tests that have a "main" method, but this must be obvious to user - maybe a new message like "Class does not have a main method - if you want to run this file as a test suit, use 'Test file (Ctrl-F6)'"
All actions defined on the project side. Reassign to java project for evaluation.
You are right.
*** Issue 160131 has been marked as a duplicate of this issue. ***
Works fine in dev. The test is executed. Regarding the (test-single) it's just a name of executed ant target and it may change.