Sample code for "Testing activity in Android Studio" tutorial.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.idea
app
gradle/wrapper
graphics
.gitignore
Greeter.iml
LICENSE
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

Testing an activity in Android Studio tutorial sample code.

This is a sample code for Testing activity in Android Studio tutorial.

Greeter android app

Clone this repository

git clone git@github.com:evgenyneu/greeter-android.git

Run the tests

  • Open the project in Android Studio.
  • In your project window expand app > java folders.
  • You will see two packages with the same name com.mycompany.greeter. The second one will have (androidTest). Right-click on that one.
  • Select Run > Tests in 'com.mycomp... from the context menu, the one with green Android robot icon.
  • Select your device or emulator in the next dialog and it will run the tests.

Run the tests