android-testing-templates icon indicating copy to clipboard operation
android-testing-templates copied to clipboard

Android Studio instructions outdated?

Open janpio opened this issue 8 years ago • 1 comments

https://github.com/googlesamples/android-testing-templates/tree/master/AndroidTestingBlueprint#running-instrumentation-tests says:

In Android Studio

  • In the Build Variants window, make sure the Android Instrumentation Tests option is selected.
  • Open a Instrumentation test class like EspressoTest.java or UiAutomatorTest.java
  • Right click on the class and Run as Android Test.

For me (Android Studio 2.3.3 and 3 beta 6) there is no selection for this in "Build Variants". On right clicking I also don't get "Run as ..." as an option, only "Run '...'".

What is the current equivalent for these instructions?

janpio avatar Oct 03 '17 21:10 janpio

Hm I guess "Run configurations" are the solution here:

image via https://stackoverflow.com/a/46441463/252627

Or is there an easier way that I overlooked?

janpio avatar Oct 03 '17 22:10 janpio