/android-tutorial-project

A simple android tutorial project with test projects for teaching purposes

Primary LanguageJavaApache License 2.0Apache-2.0

android-tutorial-project

A simple android tutorial project with test projects for teaching purposes. The project includes a small android application (quadratic equation solver) that is tested with the help of various test frameworks and specifically (a) Android test framework, (b) Espresso, (c) UIAutomator and (d) Robolectric.

Before running instrumented tests follow the instructions of the android developer team:

To avoid flakiness, we highly recommend that you turn off system animations
on the virtual or physical devices used for testing. On your device, under
Settings > Developer options, disable the following 3 settings:

- Window animation scale
- Transition animation scale
- Animator duration scale

Execute the android integration tests in a connected device or emulator with the command:

gradlew connectedCheck

Robolectric tests are executed as ordinary JUnit tests in a standard JVM with the command:

gradlew test