Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 262
Jonathan Schneider Avatar asked May 01 '12 23:05

Jonathan Schneider


1 Answers

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.

like image 96
Mike Avatar answered Sep 22 '22 21:09

Mike