android-espresso-dependencies

Add Espresso and AndroidX Test dependencies to app/build.gradle.kts.

3|1|Updated Dec 4, 2025
One-click install
npx skills add https://github.com/hitoshura25/claude-devtools --skill android-espresso-dependencies
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: android-espresso-dependencies
Source: https://github.com/hitoshura25/claude-devtools/tree/main/skills/android-espresso-dependencies
Command: npx skills add https://github.com/hitoshura25/claude-devtools --skill android-espresso-dependencies

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill adds Espresso and AndroidX Test dependencies to Android projects, enabling end-to-end UI testing with minimal setup.

Core Features & Use Cases

  • Automatically adds Espresso core, espresso-contrib, espresso-intents, and AndroidX Test dependencies to the Gradle build file.
  • Detects existing dependencies to avoid duplication and preserves existing configuration.
  • Supports optional test runner and orchestrator configuration for isolated test execution in larger test suites.

Quick Start

Use the android-espresso-dependencies skill to add Espresso and AndroidX Test dependencies to your app/build.gradle.kts file and configure the test runner if needed.

Frequently Asked Questions about android-espresso-dependencies

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add Espresso dependencies to my Android Gradle project?

To add Espresso dependencies, you update your app/build.gradle.kts file with androidTestImplementation entries for Espresso core, contrib, and intents, checking existing configurations to avoid duplicates.

What's the best way to set up AndroidX Test dependencies for UI testing?

Setting up AndroidX Test dependencies involves adding the required test libraries to your Gradle build file and optionally configuring the test runner and orchestrator for isolated test execution.

Can I configure the Espresso test runner and orchestrator in build.gradle.kts?

Yes, you can configure the test runner and orchestrator in build.gradle.kts to enable isolated test execution, which is particularly useful for managing larger test suites without state bleed.

Does adding Espresso dependencies overwrite my existing Gradle configuration?

No, adding Espresso dependencies through this method detects existing dependencies in your Gradle configuration to avoid duplication and preserves your existing project setup.

When do I need Espresso intents and contrib dependencies for Android UI testing?

You need Espresso intents and contrib dependencies when building end-to-end UI tests that validate inter-app navigation and interaction with complex UI components like RecyclerViews.