Kotlin Espresso sample
MVP Android project that uses Espresso instrumentation tests. All code are written in Kotlin.
This is MVP project for Android app that is written in [Kotlin](https://github.com/JetBrains/kotlin) and uses [Espresso](https://developer.android.com/intl/ja/tools/testing-support-library/index.html#Espresso) to run both unit and instrumented tests. The project is written primarily in Kotlin, distributed under the MIT License license, first published in 2015. Key topics include: android, android-architecture-component, androidx, espresso, instrumentation-tests.
Kotlin-Espresso-Sample
This is MVP project for Android app that is written in Kotlin and uses Espresso to run both unit and instrumented tests.
What you can learn from this project
- How to share test cases between
Instrumented testsandunit tests - Fundamental and practical methods that how to write Android code using Android Architecture Components that brings
ViewModel.
Requirements
- Run with Android Studio 4 (or newer)
Target app
No need to explain about the app since you are familiar with this well.. :)
<img src="img/screen.png" width="384">Run tests
Requires a connected device to run Instrumented tests. It doesn't matter whether it's a simulator and a real one.
Using Android Studio
| Instrumented Tests | Unit Tests | |
|---|---|---|
| Gradle task name | :app:connectedAndroidTest<br/><br/>![]() | :app:testDebugUnitTest<br/><br/>![]() |
| Location of test code | src/androidTest/kotlin<br/>![]() | src/test/kotlin<br/>![]() |
License
MIT
Contributors
Showing top 2 contributors by commit count.




