/android-seed

A fresh Android project with tests already set up.

Primary LanguageJava

android-seed

A fresh Android project with tests already set up.

Features

  • Loads nicely in Android Studio
  • Robolectric tests working and debuggable in IDE (for unit testing)
  • Espresso tests working and debuggable in IDE (for functional testing)
  • Latest Lollipop compat libs ready to use
  • Test coverage enabled

Versions

  • Android 22 (5.0 Lollipop), with compatibility back to 10 (2.3.3 Gingerbread)
  • Android Studio 1.2
  • Gradle 2.2
  • Build Tools 22.0.1
  • Appcompat-v7 22.0.0

Included libs

Android Studio Setup

You choose test types by switching between "Android Instrumentation Tests" and "Unit Tests" in the "Build Variants" panel in Android Studio (usually located on the bottom left side).

For Robolectric, choose "Unit Tests", then open a test class and right-click on what you want to run.

For Espresso, do the same while "Android Instrumentation Tests" is selected in the Build Variants.

Other Boilerplates