Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Gradle + Android Studio + Robolectric + Espresso + Mockito

License

NotificationsYou must be signed in to change notification settings

sebsebby/android-gradle-java-app-template

 
 

Repository files navigation

LicensebuildTwitter Follow

Gradle + Android Studio + Robolectric + Espresso + Mockito

Technologies used:

Build Tools:

NameDescription
GradleGradle build system
Android Gradle Build ToolsOfficial Gradle Plugin
Android SDKOfficial SDK
Android SDK Build ToolsOfficial Build Tools
Android Studio orOfficial IDE
IntellijIntellij IDE

Testing Frameworks:

NameDescription
EspressoInstrumentation Framework
RobolectricUnit Testing Framework

Publishing to Google Play:

NameDescription
Gradle-play-publisherPublishes your app to Google Play

Getting Started:

Android Studio orIntellij Support(Simple):

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

  • Instrumentation Tests:

    • Change the Build Variant Test Artifact toInstrumentation Tests
    • Right click an instrumentation test located insrc/main/androidTest and click test
  • Unit Tests:

    • Change the Build Variant Test Artifact toUnit Tests
    • Right click a unit test located insrc/main/test and click test

Building and Running

This project builds withGradle and the Android Buildtools.

Build the APK:

gradlew assembleDebug

Install the APK:

gradlew installDebug

Testing

Running the Unit Tests:

TheJunit andRobolectric tests run on the JVM, no need for emulators or real devices.

gradlew testDebug

Run a single unit test in thedebug flavor:

gradlew testDebug --tests="*MainActivityTest*"

Running the Instrumentation Tests:

TheEspresso instrumentation tests run on the device.

gradlew connectedDebugAndroidTest

Reports

Generate Lint Reports:

TheLint plugin generates reports based off the source code.

gradlew lintDebug

License

Copyright (C) 2015 Jared BurrowsLicensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License at   https://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.

About

Gradle + Android Studio + Robolectric + Espresso + Mockito

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java100.0%

[8]ページ先頭

©2009-2025 Movatter.jp