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 194631 - Debug Focused Test debugs whole File
Summary: Debug Focused Test debugs whole File
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 7.0
Hardware: PC Windows Vista
: P2 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2011-01-23 17:41 UTC by bht
Modified: 2011-01-29 05:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bht 2011-01-23 17:41:31 UTC
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.
Comment 1 Martin Entlicher 2011-01-27 17:11:25 UTC
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...
Comment 2 Martin Entlicher 2011-01-28 14:07:42 UTC
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
Comment 3 Quality Engineering 2011-01-29 05:27:00 UTC
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.