Title: Theory / Unimportant / CS / Programming / Java / Android / Test

Name: Instrumentation test
Definition: Part of the test for parts of an app that depend on activity and fragment lifecycles, and platform APIs and services.
Page: https://developer.android.com/codelabs/android-basics-kotlin-testing-basics?continue=https://developer.android.com/courses/pathways/android-basics-kotlin-two#codelab-https://developer.android.com/codelabs/android-basics-kotlin-testing-basics#2
Context: Android

Name: apk
Definition: a compressed file that contains all the code and necessary files to run the app on a device or emulator
Page: https://developer.android.com/codelabs/android-basics-kotlin-testing-basics?continue=https://developer.android.com/courses/pathways/android-basics-kotlin-two#codelab-https://developer.android.com/codelabs/android-basics-kotlin-testing-basics#2
Context: Android

Question: How Instrumentation test works
Answer: They compile an APK for test, install it along the APK for the app, and use the app to run the tests
Page: https://developer.android.com/codelabs/android-basics-kotlin-testing-basics?continue=https://developer.android.com/courses/pathways/android-basics-kotlin-two#codelab-https://developer.android.com/codelabs/android-basics-kotlin-testing-basics#2
Context: Android

Name: Espresso
Definition: Android instrumentation test library
Page: https://developer.android.com/codelabs/android-basics-kotlin-write-instrumentation-tests?continue=https://developer.android.com/courses/pathways/android-basics-kotlin-unit-2-pathway-2#codelab-https://developer.android.com/codelabs/android-basics-kotlin-write-instrumentation-tests#3
Context: Android

Typ: InstrumentationTestRunner
Meaning: An instrumentation test for Android application
Page: https://developer.android.com/codelabs/android-basics-kotlin-write-instrumentation-tests?continue=https://developer.android.com/courses/pathways/android-basics-kotlin-unit-2-pathway-2#codelab-https://developer.android.com/codelabs/android-basics-kotlin-write-instrumentation-tests#3
Context: Android

Instruction: ActivityScenarioRule(clazz)
Page: https://developer.android.com/codelabs/android-basics-kotlin-write-instrumentation-tests?continue=https://developer.android.com/courses/pathways/android-basics-kotlin-unit-2-pathway-2#codelab-https://developer.android.com/codelabs/android-basics-kotlin-write-instrumentation-tests#3
Context: Android, espresso
Returns: the activity clazz, started

Typ: ViewMatcher
Meaning: A component that matches against some view of an UI
Page: https://developer.android.com/codelabs/android-basics-kotlin-write-instrumentation-tests?continue=https://developer.android.com/courses/pathways/android-basics-kotlin-unit-2-pathway-2#codelab-https://developer.android.com/codelabs/android-basics-kotlin-write-instrumentation-tests#3
Context: Android, espresso

Typ: ViewActions
Meaning: An action that can be performed on a view
Page: https://developer.android.com/codelabs/android-basics-kotlin-write-instrumentation-tests?continue=https://developer.android.com/courses/pathways/android-basics-kotlin-unit-2-pathway-2#codelab-https://developer.android.com/codelabs/android-basics-kotlin-write-instrumentation-tests#3
Context: Android, espresso

Typ: ViewAssertion
Meaning: Some assertion a view may satisfy or not
Page: https://developer.android.com/codelabs/android-basics-kotlin-write-instrumentation-tests?continue=https://developer.android.com/courses/pathways/android-basics-kotlin-unit-2-pathway-2#codelab-https://developer.android.com/codelabs/android-basics-kotlin-write-instrumentation-tests#3
Context: Android, espresso