Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 365317 - [Xtend] JUnit: allow to run individual test methods
Summary: [Xtend] JUnit: allow to run individual test methods
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X
: P3 enhancement (vote)
Target Milestone: M4   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-01 09:37 EST by Moritz Eysholdt CLA
Modified: 2017-09-19 18:14 EDT (History)
1 user (show)

See Also:
sven.efftinge: juno+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Moritz Eysholdt CLA 2011-12-01 09:37:25 EST
In Java, if you place the cursor over a test-method and trigger "run as JUnit Test" (via shortcut or context menu), only this test method will be executed.

In Xtend, all test methods from the class will always be executed. I'd expect only the selcted method to be extecuted.

hints for the implementation:
org.eclipse.jdt.junit.launcher.JUnitLaunchShortcut.launch(IEditorPart, String)
--> finds the selected method

org.eclipse.xtext.xtend2.ui.launching.JUnitLaunchShortcut.launch(IEditorPart, String)
--> should do the same.
Comment 1 Moritz Eysholdt CLA 2011-12-01 13:19:26 EST
fixed. pushed to 'master'.
Comment 2 Karsten Thoms CLA 2017-09-19 18:04:40 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 18:14:41 EDT
Closing all bugs that were set to RESOLVED before Neon.0