Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 328162

Summary: [JUnit] debug current test method when pressing debug shortcut from a method body
Product: [Eclipse Project] JDT Reporter: Jaime Hablutzel <hablutzel1>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert, darin.eclipse, hablutzel1, markus.kell.r
Version: 3.7   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Jaime Hablutzel CLA 2010-10-19 13:11:00 EDT
Build Identifier: Build id: 20100617-1415

Currently, if you place the caret inside a method body and press the run as > junit test shortcut it debugs the entire test unit class, maybe it should debug the current method, because after all I'm working in that test method, the most probable is that I want to debug it.

Reproducible: Always

Steps to Reproduce:
1. open junit test file 
2. place caret in some method body (not signature)
3. right clic > run as > junit test
Comment 1 Darin Wright CLA 2010-10-19 13:14:31 EDT
The JUnit launcher is owned by JUI.
Comment 2 Dani Megert CLA 2010-10-20 03:13:41 EDT
It works if you select the method declaration in the editor (use Ctrl+Shift+Up) or the method in the Outline or Package Explorer.

*** This bug has been marked as a duplicate of bug 209545 ***