• Stars
    star
    107
  • Rank 323,587 (Top 7 %)
  • Language
    Kotlin
  • License
    MIT License
  • Created almost 9 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

MVP Android project that uses Espresso instrumentation tests. All code are written in Kotlin.

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 tests and unit 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.. :)

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

Run Task
:app:testDebugUnitTest

Run Unit Test
Location of test code src/androidTest/kotlin
Path
src/test/kotlin
Path

License

MIT