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

Bug 364650

Summary: Keyboard shortcut for Run As Test does not work in eclipse
Product: [Modeling] TMF Reporter: Steve Ash <stevemash>
Component: XtextAssignee: Moritz Eysholdt <moritz.eysholdt>
Status: CLOSED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: sebastian.zarnekow
Version: unspecifiedFlags: sebastian.zarnekow: juno+
Target Milestone: M4   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Steve Ash CLA 2011-11-23 15:48:06 EST
Build Identifier: M20110909-1335

I downloaded the xtend2 distribution from intuit and within eclipse if I execute alt+shift+x t it pops up a message indicating the no test case exists.  If I right click in the file and select run as -> JUnit test then it executes the test fine.

Note that the shortcut displayed in the popup menu when I right-click and view "run as" options in the xtend file is still alt+shift+x t

Note also that if I use the shortcut in the generated java file, then it executes the test case fine.

Reproducible: Always

Steps to Reproduce:
1. Open xtend class source file from tutorial: Xtend10_CreateFunctions which extends TestCase
2. With the caret in the editor hit alt+shift+X T
Comment 1 Moritz Eysholdt CLA 2011-12-01 11:01:19 EST
Now the following shortcuts are working for Xtend files. The key bindings I'm listing are for OS X, they may be different on other platforms. They are expected to be the same as in JDT.

ALT+CMD+X J -> Run Java Application
CTRL+ALT+CMD+D J -> Debug Java Application
ALT+CMD+X T -> Run JUnit Test
CTRL+ALT+CMD+D T -> Debug JUnit Test
ALT+CMD+X P -> Run JUnit Plug-In Test
CTRL+ALT+CMD+D P -> Debug JUnit Plug-In Test

Two related issues are still open:
bug 365317: [Xtend] JUnit: allow to run individual test methods
bug 218881 - [JDT] Launch using shortcut key Alt+Shift+X doesn't work until launch actions are loaded
Comment 2 Karsten Thoms CLA 2017-09-19 17:39:51 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 17:51:07 EDT
Closing all bugs that were set to RESOLVED before Neon.0