/Android-Boilerplate

Android Boilerplate project using an Espresso Test Module and Robolectric Unit Tests

Primary LanguageJavaOtherNOASSERTION

Android Boilerplate Build Status

Web Launcher

A simple boilerplate application which demonstrates the downloading, persisting and syncing of data - displayed with a common layout used amongst applications. It features the use of the Design Support library, data caching and the new Test Modules, separating the functional tests from production code.

The project is setup using:

Web Launcher

Requirements

  • Android SDK.
  • Android 5.1 (API 22) .
  • Android SDK Tools
  • Android SDK Build tools 23.0.0.0 rc3
  • Android Support Repository
  • Android Support library

Building

To build, install and run a debug version, run this from the root of the project:

./gradlew installRunDebug

Testing

For Android Studio to use syntax highlighting for Automated tests and Unit tests you must switch the Build Variant to the desired mode.

To run unit tests on your machine using [Robolectric] (http://robolectric.org/):

./gradlew testDebug

To run automated tests on connected devices:

./gradlew connectedAndroidTest

Thanks

Thanks to the following for contributions!

[ivacf] (https://github.com/ivacf)
[Jawnnypoo] (https://github.com/Jawnnypoo)