Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

Espresso

developer.android.com

  • Free plan
  • macOS
  • Linux
  • Web
  • iPhone and iPad
  • Android

What Espresso is

Espresso is a free, open-source framework for writing automated UI tests for Android apps. Before actions or assertions, it waits for the app's message queue, AsyncTask work and developer-defined idling resources to become idle. Its packages support core testing, WebView components, idling resources, intents and other testing needs. Espresso-Web tests Android WebViews, while Espresso-Intents can validate and stub intents sent by an app. Tests can run in Android Studio or from the command line with Gradle, and setup uses the SDK Manager and Gradle. Test Recorder captures device interactions and assertions to generate a UI test; AccessibilityChecks can evaluate views during actions. Multiprocess Espresso supports interactions across processes within an app, but requires Android 8.0/API level 26 or higher and cannot test external processes. The framework supports Android 4.0.1/API level 14 or higher. The listed stable release and core dependency are 3.7.0.

Who it suits

Espresso suits Android developers who include automated testing in their development lifecycle. It is particularly relevant for teams testing UI behavior, WebViews, intents or interactions within multiple app processes.

Good to know, and what to watch

  • Synchronizes actions with message queues and idling resources.
  • Espresso-Web supports Android WebView UI testing.
  • Test Recorder generates UI tests from recorded interactions and assertions.
  • Tests run in Android Studio or with command-line Gradle.
  • Free and Apache-2.0 licensed.
  • Multiprocess testing requires Android 8.0/API 26 or higher.
  • Multiprocess Espresso cannot test external processes.
  • Espresso Device API has additional IDE, plugin, emulator and device requirements.

Espresso

Free

Open source

Getting started

  1. Open the Espresso setup guide
  2. Install it through the Android SDK Manager and Gradle
  3. Use Android Studio as the recommended development environment
  4. Add the listed Espresso dependency to the project
  5. Run tests in Android Studio or from the command line with Gradle

Limits to check

The free Espresso plan is for Android UI testing and a single target app. Multiprocess Espresso requires Android 8.0/API 26 or higher, cannot test external processes, and the Device API has additional tool and virtual-device requirements.

The verdict

Espresso offers Android-focused UI test support with synchronization and tools for several testing scenarios. Check the specific Android and development-environment requirements before relying on multiprocess or device API features.

Questions people ask

Is Espresso free?

Yes. Espresso is free and open source under the Apache-2.0 license.

Which Android versions does it support?

The framework supports Android 4.0.1/API level 14 and higher.

Can Espresso test WebViews and intents?

Yes. Espresso-Web tests Android WebView UI components, and Espresso-Intents validates and stubs intents sent by the application.

Where can tests run?

Tests can run in Android Studio or from the command line with Gradle.

What languages are supported?

The listed SDK languages are Kotlin and Java.

What the maker publishes

Accessibility
AccessibilityChecks can be enabled in Espresso tests to evaluate views and their descendants during view actions. source
Analytics
The test runner uploads a hash of the application package name for each invocation, and users can opt out with disableAnalytics. source
Analytics
The test runner uploads a hash of the application package name for each invocation, and analytics can be disabled with the disableAnalytics instrumentation argument. source
Audience
Espresso targets developers who consider automated testing an integral part of the development lifecycle. source
Core packages
The core packages include espresso-core, espresso-web, espresso-idling-resource, espresso-contrib, espresso-intents, and espresso-remote. source
Current artifact
The AndroidX Test release page lists androidx.test.espresso:espresso-core:3.7.0 as a dependency. source
Device API
The Espresso Device API simulates configuration changes such as rotation and screen unfolding and runs actions synchronously. source
Device API requirements
Espresso Device API requires Android Studio Iguana or higher, Android Gradle Plugin 8.3 or higher, Android Emulator 33.1.10 or higher, and an API 24 or higher virtual device. source
Execution
Espresso tests can run in Android Studio or from the command line with Gradle. source
Installation
The setup guide installs Espresso through the SDK Manager and Gradle and recommends Android Studio. source
Installation
The setup guide recommends Android Studio and uses Gradle dependencies from the AndroidX Test libraries. source
Intent testing
Espresso-Intents validates and stubs intents sent by the application under test. source
Intent testing
Espresso-Intents can match and validate outgoing intents or provide stub responses for delegated functionality. source
License
The AndroidX Test repository is Apache-2.0 licensed. source
License
The Espresso source repository is public and identifies its license as Apache-2.0. source
Maker products
Google says it makes hundreds of products including Android, YouTube, Gmail, and Google Search. source
Multiprocess limit
Multiprocess Espresso requires Android 8.0 API level 26 or higher and cannot test external processes. source
Multiprocess testing
Multiprocess Espresso tests UI interactions across processes within an app while maintaining Espresso synchronization guarantees. source
Purpose
Espresso is used to write concise, beautiful, and reliable Android UI tests. source
Purpose
Espresso provides APIs for writing concise Android UI tests that simulate user interactions with Views. source
Release
The AndroidX Test release page lists Espresso stable release 3.7.0. source
Support
The project directs general questions to its AndroidX Test Discuss mailing list and specific questions to Stack Overflow, while using GitHub issues for feature requests and bugs. source
Supported Android
The Espresso testing framework supports Android 4.0.1/API level 14 or higher. source
Synchronization
Espresso waits for the message queue, AsyncTask operations, and developer-defined idling resources to be idle before UI actions or assertions. source

Checked against the maker's pages on 1 Oct 2026.