Keyboard shortcut for Run As -> Android JUnit Test in Eclipse
Asked Answered
L

3

5

Anybody figured out the keyboard equivalent of this menu?

The menu I would like to have a keyboard shortcut for

I have been using this menu on test cases infused with Robotium with class signatures like:

public class AccountTest extends ActivityInstrumentationTestCase2<MainActivity> { ... }

Somehow, Alt-Shift-X, T just doesn't quite do the same thing even if you select the Android JUnit Runner in the dialog that pops up...

The similar Run As -> Android Application has a tricky shortcut of Alt-Shift-A, R when launching every other conceivable type of runnable begins with Alt-Shift-X, so there is hope.

Londonderry answered 1/5, 2012 at 23:25 Comment(0)
I
5

Window -> Preferences -> Run/Debug -> Launching -> Always launch the previously launched application.

Run the test case, either the whole thing, or a particular test method, once. It then becomes available to run again in the history. Press the Run or Debug button's drop down menu. Select the configuration you want to run. From then on, F11 or Ctrl+F11 (debug or run) rinses and repeats the exact same thing again.

type type type, F11, observe results, type type type. No mouse. Very productive.

Indescribable answered 13/7, 2012 at 17:55 Comment(0)
B
3

On my macbook I'm using Shift-Command-Fn-F11.

Brockbrocken answered 29/5, 2013 at 21:10 Comment(0)
P
0

I am using a similar shortcut but for TestNG, in my case, the shortcut is SHIFT + ALT + X, G

So when I press SHIFT + ALT + X, I get a small window at bottom right side as:

enter image description here

Once I see this window on the bottom right, as I hit the key G, it launches TestNG Suite as expected.

Putup answered 2/7, 2015 at 10:14 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.