- Notifications
You must be signed in to change notification settings - Fork0
Gradle + Android Studio + Robolectric + Espresso + Mockito
License
sebsebby/android-gradle-java-app-template
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Gradle + Android Studio + Robolectric + Espresso + Mockito
| 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 |
| Name | Description |
|---|---|
| Espresso | Instrumentation Framework |
| Robolectric | Unit Testing Framework |
| Name | Description |
|---|---|
| Gradle-play-publisher | Publishes your app to Google Play |
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/androidTestand click test
- Change the Build Variant Test Artifact to
Unit Tests:
- Change the Build Variant Test Artifact to
Unit Tests - Right click a unit test located in
src/main/testand click test
- Change the Build Variant Test Artifact to
This project builds withGradle and the Android Buildtools.
Build the APK:
gradlew assembleDebug
Install the APK:
gradlew installDebug
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
Generate Lint Reports:
TheLint plugin generates reports based off the source code.
gradlew lintDebug
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
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Languages
- Java100.0%