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.
May be this is already a known issue. In the context menu, inside a method in the Java editor, selecting Debug Focused Test. Run Focused Test works ok.
Works fine for me in an old 7.0 dev build (from Nov 2010). I've tested with a new Java Application project, generated a test and both Run Focused Test and Debug Focused Test executed just the focused test method. But in current dev build 201101270001 this does not work. Even though there is methods=... parameter, it executes all tests. Therefore this seems to be a regression somewhere...
The difference is in nbbuild/netbeans/java/ant/patches/72080.jar, which is missing in current dev builds. Run uses netbeans/java/ant/lib/ant-junit4.jar but this is missing in the debug. Adding ant-junit4.jar on the classpath fixes the behavior. I've synchronized the way how run test and debug test are executed, which fixes this problem. changeset: 187542:ba709aa61ea6 http://hg.netbeans.org/main/rev/ba709aa61ea6
Integrated into 'main-golden', will be available in build *201101290000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/ba709aa61ea6 User: mentlicher@netbeans.org Log: #194631 Synchronizing junit test debug with test run.