Test apps on Android   Part of Android Jetpack.

Testing your app is an integral part of the app development process. By running tests against your app consistently, you can verify your app's correctness, functional behavior, and usability before you release it publicly.

Testing also offers the following advantages:

  • Rapid feedback on failures.
  • Early failure detection in the development cycle.
  • Safer code refactoring, allowing you to optimize code without worrying about regressions.
  • Stable development velocity, helping you minimize technical debt.

Documentation

The documentation covers best practices around testing Android apps:

Additional resources

For more information about testing on Android, consult the following resources.

Samples

Codelabs

Media

This is part 2 of the Testing at scale series of articles where we asked industry experts to share their testing strategies. In this article, Ryan Harter, Staff Engineer at Dropbox, shares how the shape of Dropbox’s testing pyramid changed over time,

This is part of the Testing at scale series of articles where we asked industry experts to share their testing strategies. In this article, Ken Yee, Senior Engineer at Netflix, tells us about the challenges of testing a playback app at a massive

We’re excited to announce the new “Testing at scale” blog series! In these posts, industry experts working on different apps share their testing strategies, tips, and obstacles found along the way. This series complements the new Testing Strategies

You can test a ViewModel by simply creating an instance using its constructor in your test code. However, this approach has limitations — there is no straightforward way to: With ViewModelScenario, these are now easy to test, helping you catch errors