tezvyn:

Instrumentation Tests: Testing on a Real Android Device

Source: developer.android.combeginner

Instrumentation tests are like test-driving your app on a real device or emulator. They verify code that depends on the Android framework, like UI interactions or sensor access.

Instrumentation tests are like test-driving your app on a real device or emulator. They are essential for verifying code that directly interacts with the Android framework, such as rendering UI components, accessing device sensors, or handling user permissions. This allows you to catch bugs that only appear in a real device environment. The main footgun is over-reliance: running slow, flaky instrumentation tests for pure business logic that could be verified instantly with a local unit test.

Read the original → developer.android.com

Get five bites like this every day.

Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.

Instrumentation Tests: Testing on a Real Android Device · Tezvyn