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

Bug 365317

Summary: [Xtend] JUnit: allow to run individual test methods
Product: [Modeling] TMF Reporter: Moritz Eysholdt <moritz.eysholdt>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: sven.efftinge
Version: unspecifiedFlags: sven.efftinge: juno+
Target Milestone: M4   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:

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