• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

jaredsburrows/android-gradle-kotlin-app-template: Gradle + Android Studio + Robo ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

jaredsburrows/android-gradle-kotlin-app-template

开源软件地址(OpenSource Url):

https://github.com/jaredsburrows/android-gradle-kotlin-app-template

开源编程语言(OpenSource Language):

Kotlin 100.0%

开源软件介绍(OpenSource Introduction):

Android Gradle Kotlin App Template

License TravisCI OSX Build Twitter Follow

Gradle + Android Studio + Robolectric + Espresso + JaCoCo

Technologies used:

Build Tools:

Name Description
Gradle Gradle build system
Android Gradle Build Tools Official Gradle Plugin
Android SDK Official SDK
Android SDK Build Tools Official Build Tools
Android Studio or Official IDE
Intellij Intellij IDE

Android Libraries:

Name Description
Android Support-v4 Support Library API 4+
Android AppCompat-v7 Support Library API 7+

Testing Frameworks:

Name Description
Espresso Instrumentation Framework

Reporting Plugins:

Name Description
JaCoCo JaCoCo Test Coverage
Coveralls Hosts test reports published from TravisCI

Continuous Integration:

Name Description
TravisCI Build Server(Builds, Tests, Publishes reports to Coveralls)

Publishing to Google Play:

Name Description
Gradle-play-publisher Publishes your app to Google Play

Getting Started:

Android Studio or Intellij Support(Simple):

  • Import/Open this project with Android Studio/Intellij(click on build.gradle)

  • Instrumentation Tests:

  • Change the Build Variant Test Artifact to Instrumentation Tests

  • Right click an instrumentation test located in src/main/androidTest and click test

  • Unit Tests:

  • Change the Build Variant Test Artifact to Unit Tests

  • Right click a unit test located in src/main/test and click test

Building and Running

This project builds with Gradle and the Android Build tools.

Build the APK:

$ gradlew assembleDebug

Install the APK:

$ gradlew installDebug

Run the App:

$ gradlew runDebug

Testing

Running the Unit Tests:

The Junit tests run on the JVM, no need for emulators or real devices.

$ gradlew testDebug

Run a single unit test in the debug flavor:

$ gradlew testDebug --tests="*MainActivityTest*"

Running the Instrumentation Tests:

The Espresso instrumentation tests run on the device.

$ gradlew connectedDebugAndroidTest

Reports

Generate Lint Reports:

The Lint plugin generates reports based off the source code.

$ gradlew lintDebug

Generate Jacoco Test Coverage:

The Jacoco plugin generates coverage reports based off the unit tests.

$ gradlew jacocoDebugReport



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap