Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 328162 - [JUnit] debug current test method when pressing debug shortcut from a method body
Summary: [JUnit] debug current test method when pressing debug shortcut from a method ...
Status: CLOSED DUPLICATE of bug 209545
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-19 13:11 EDT by Jaime Hablutzel CLA
Modified: 2010-10-20 03:13 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***