Skip to content

aniketmathur/RobolectricBuilder

 
 

Repository files navigation

AndroidStudioAndRobolectric

Get Started on command-line

  1. Just clone.
  2. Go into the project directory.
  3. Run ./gradlew test and get started with robolectric.

Get Started with Android Studio

  1. Import this project with Android Studio.
  2. Change the Build Variant // Test Artifact to Unit Test (http://tools.android.com/tech-docs/unit-testing-support).
  3. Right click on a test and get started with robolectric.

More example project setups

Flavors

Here an example with flavors https://github.com/nenick/AndroidStudioAndRobolectric/tree/flavors

Multi Modules (Android Library)

Here an example with android library module https://github.com/nenick/AndroidStudioAndRobolectric/tree/library

Library depends on other android libraries

Here a special example when the library has aar dependencies https://github.com/nenick/AndroidStudioAndRobolectric/tree/library-with-aar

Separate Test Module

For some use cases it is great to split tests into different modules https://github.com/nenick/android-gradle-template

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%