Getting Started - nenick/AndroidAppDevelopment GitHub Wiki
Getting Started
Check if the project and tests works on your machine
clone, attach phone (or start emulator), run Scripts/run-tests.sh
from project root
Check if you get this project to work with andorid studio
import to android studio, start development, press play
Test support in IDE
install the plugin https://github.com/evant/android-studio-unit-test-plugin you can install the plugin through the plugin installer in Android Studio
This project template support AndroidStudio.
Run tests in Android Studio need some configuration: see wiki for description
Tests on command line
unit tests: ./gradlew testNormLDebug
- append
jacocoReport
for coverage report can't be combined with the integration tests
integration tests: ./gradlew testIntegrationDebug
- append `jacocoReport for coverage report can't be combined with the unit tests
acceptance tests: ./gradlew connectedAndroidIntegrationTest
- replace by
:App:connectedCheck
for coverage report
rest example
Currently RestActivity example fails when no server is reachable.
- start
Script/start-wiremock.sh
- kill
Script/start-wiremock.sh kill
Test results
- all test result are collected at projectRoot/build/index.html
Scripts
- run-tests.sh execute all test variants
- run-tests-fast.sh execute just the robolectric tests
- run-tests-travis.sh do all steps necessary for full automatic builds, like install custom dependencies