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 213773 - [72cat] Debugger steps into all test methods even when just one test method is debugged and Compile on save is off
Summary: [72cat] Debugger steps into all test methods even when just one test method i...
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 7.2
Hardware: PC Windows 7 x64
: P2 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-07 20:57 UTC by crazyjavahacking
Modified: 2012-06-11 06: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 crazyjavahacking 2012-06-07 20:57:39 UTC
Compiler will step into all test methods with breakpoints when just one method is debugged and Compile on safe is off (when Compile on save is on, it works correctly).

To reproduce the bug, just follow the http://wiki.netbeans.org/TS_72_UnitTesting#Test_suite:_Results_window_actions and the "10. Debug" test case.

It does not work only got JUnit 4 (JUnit 3 works fine).


NetBeans Dev 201206070001, JDK 7u2 32bit
Comment 1 Martin Entlicher 2012-06-08 11:42:56 UTC
Reproduced.
The problem is in different class path for Run and Debug.
Comment 2 Martin Entlicher 2012-06-10 08:24:05 UTC
It's fixed by changeset:   224107:fda4ea9dcfe8
We use junit task instead of JUnitTestRunner when debugging.
http://hg.netbeans.org/main/rev/fda4ea9dcfe8
Comment 3 Quality Engineering 2012-06-11 06:27:06 UTC
Integrated into 'main-golden', will be available in build *201206110001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/fda4ea9dcfe8
User: mentlicher@netbeans.org
Log: #213773: Get rid of JUnitTestRunner used by test debugging. Pass the debugging parameters to junit instead.