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?
已存档?
是复刻?
已锁定?
是镜像?
是私有?