This is MVP project for Android app that is written in Kotlin and uses Espresso to run both unit and instrumented tests.
- How to share test cases between
Instrumented tests
andunit tests
- Fundamental and practical methods that how to write Android code using Android Architecture Components that brings
ViewModel
.
- Run with Android Studio 4 (or newer)
No need to explain about the app since you are familiar with this well.. :)
Requires a connected device to run Instrumented tests
. It doesn't matter whether it's a simulator and a real one.
Instrumented Tests | Unit Tests | |
---|---|---|
Gradle task name | :app:connectedAndroidTest |
:app:testDebugUnitTest |
Location of test code | src/androidTest/kotlin |
src/test/kotlin |
MIT