AndroidStudioAndRobolectric

Minimal Robolectric and Android Studio example

  • 所有者: nenick/AndroidStudioAndRobolectric
  • 平台:
  • 許可證:
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

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

"THE BEER-WARE LICENSE":
As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return. Nico Küchler

主要指標

概覽
名稱與所有者nenick/AndroidStudioAndRobolectric
主編程語言Java
編程語言Java (語言數: 1)
平台
許可證
所有者活动
創建於2015-02-07 16:52:38
推送於2016-11-16 20:06:39
最后一次提交2016-11-16 21:06:39
發布數0
用户参与
星數139
關注者數10
派生數28
提交數62
已啟用問題?
問題數24
打開的問題數11
拉請求數2
打開的拉請求數0
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?