awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
android avatar

android/testing-samples

0
View on GitHub↗
9,297 stars·3,638 forks·Java·Apache-2.0·12 views

Testing Samples

This is a collection of sample projects that demonstrate how to write automated tests for Android applications. The samples cover a range of testing techniques, including simulating user interactions with the Espresso framework, verifying navigation and inter-component communication through intent interception, and managing activity, intent, and service lifecycles using reusable test rules.

The repository provides concrete implementations for testing across multiple application windows, capturing screenshots during test execution for visual verification, and synchronizing test assertions with background work to prevent flaky results. It also includes examples of parameterized test execution that runs the same test logic with multiple input values, as well as techniques for interacting with and verifying content inside embedded WebViews.

The samples are organized to illustrate how to control and inspect UI elements across different applications on a device, and how to organize tests into reusable suites for comprehensive coverage. The documentation and code examples are structured to serve as reference implementations for Android testing frameworks and automated UI and unit test patterns.

Features

  • Android UI Testing - Provides sample implementations for writing automated UI tests that simulate user interactions on Android.
  • Testing Samples - Serves as a collection of sample projects demonstrating various Android testing frameworks and techniques.
  • Test Rule Wrappers - Provides reusable test rules that automatically launch and tear down activities for each test method.
  • Android Intent Integrations - Provides sample implementations for intercepting and verifying intents to test navigation and inter-app communication in Android.
  • Intent Stubbing - Stubs intents to verify navigation and inter-component communication without launching external activities.
  • Intent Verification Testing - Captures and stubs intents in Android tests to verify navigation and communication between app components.
  • Intent Interception for Testing - Captures outgoing intents or stubs incoming ones to verify navigation and inter-component communication in tests.
  • Espresso UI Testing - Provides sample code showing how to use Espresso to simulate user interactions and verify on-screen element states in Android apps.
  • View Hierarchy Matchers - Matches on-screen elements by traversing the view hierarchy and applying declarative matchers for state verification.
  • Test Background Work Synchronization - Pauses test execution until background tasks finish to prevent flaky assertions.
  • Android Parameterized Test Execution - Provides sample implementations for running Android tests with multiple input values and organizing them into reusable suites.
  • Espresso Framework Testing - Uses the Espresso framework to perform UI actions and assertions in Android tests for reliable app behavior.
  • Android - Demonstrates controlling activity, intent, and service lifecycles in Android tests with reusable rules.
  • Android Lifecycle Test Rules - Controls activity, intent, or service lifecycle within test cases using reusable Android test rules.
  • Espresso UI Testing - Simulates user actions and checks on-screen element states using the Espresso framework for Android.
  • Test Idling Resources - Synchronizes test assertions with background work by polling registered resources until they report idle.
  • WebView Test Automation - Performs actions and checks content inside embedded web pages during test execution.
  • Multi-Window Testing - Provides sample implementations for directing test actions to UI elements across multiple application windows on Android.
  • Android - Captures frame buffer screenshots at test checkpoints for visual verification of Android UI state.
  • Test - Takes and saves screenshots of the current screen during test execution for visual verification.
  • Parameterized Test Runners - Runs the same test logic with multiple input values by iterating over annotated data sources.
  • Parameterized Test Suites - Executes tests with multiple input values and organizes them into reusable test suites.
  • Android Cross-App UI Control - Controls and inspects UI elements across multiple applications on an Android device.
  • WebView DOM Injection - Injects JavaScript into embedded WebViews to query and manipulate DOM elements during test execution.
  • Android Multi-Window UI Testing - Directs test actions to UI elements across multiple application windows on Android devices.
  • Android Multi-Window Focus Routing - Routes UI interactions to the correct window by resolving display and window token identifiers during tests.

Star history

Star history chart for android/testing-samplesStar history chart for android/testing-samples

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Testing Samples

These projects share indexed features with Testing Samples. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • googlesamples/android-testing-templatesgooglesamples avatar

    googlesamples/android-testing-templates

    1,955View on GitHub↗

    This repository provides a collection of reference implementations and patterns for testing Android applications. It serves as a guide for developers to integrate standard testing libraries and frameworks into their projects, covering the full spectrum of verification from local business logic to complex interface interactions. The project distinguishes itself by demonstrating how to configure and execute tests across diverse environments, including local virtual machines and physical devices or emulators. It provides specific patterns for validating inter-application communication, automatin

    Java
    View on GitHub↗1,955
  • hitherejoe/android-boilerplatehitherejoe avatar

    hitherejoe/Android-Boilerplate

    1,855View on GitHub↗

    Android-Boilerplate is a modular Android project template pre-configured with dependency injection, reactive streams, and testing tools to accelerate mobile application development. The codebase integrates Dagger for managing component dependencies and object lifecycles, and implements RxJava for asynchronous data streams and event-driven application state management. The application architecture incorporates a pre-configured testing suite using Espresso and Mockito for executing both unit and user interface instrumentation tests. Data handling includes local-first database persistence along

    Java
    View on GitHub↗1,855
  • facebook/screenshot-tests-for-androidfacebook avatar

    facebook/screenshot-tests-for-android

    1,741View on GitHub↗

    This project is an automated testing framework designed to capture and verify the visual state of Android interface components. It provides a system for generating deterministic snapshots of UI elements, allowing developers to establish baselines for layout consistency and detect unintended visual regressions across different software versions and hardware configurations. The framework distinguishes itself by enabling isolated component rendering, which allows individual views to be tested without requiring a full application build. It ensures consistency by controlling the rendering lifecycl

    Java
    View on GitHub↗1,741
  • openatx/uiautomator2openatx avatar

    openatx/uiautomator2

    7,864View on GitHub↗

    uiautomator2 is an Android device automation tool and UI testing library. It functions as a framework for automating user interface interactions and managing device states via a remote client. The project provides a remote management interface for controlling Android applications, simulating user gestures, and managing system settings. It enables the analysis of XML UI hierarchies to locate interface elements and verify application behavior. The tool covers broad capability areas including application lifecycle management, device connectivity, and file system operations. It also includes sys

    Pythonpythontestuiautomator
    View on GitHub↗7,864
Compare all 14 related projects→

Frequently asked questions

What does android/testing-samples do?

This is a collection of sample projects that demonstrate how to write automated tests for Android applications. The samples cover a range of testing techniques, including simulating user interactions with the Espresso framework, verifying navigation and inter-component communication through intent interception, and managing activity, intent, and service lifecycles using reusable test rules.

What are the main features of android/testing-samples?

The main features of android/testing-samples are: Android UI Testing, Testing Samples, Test Rule Wrappers, Android Intent Integrations, Intent Stubbing, Intent Verification Testing, Intent Interception for Testing, Espresso UI Testing.

Which projects share features with android/testing-samples?

Projects with overlapping indexed features include: googlesamples/android-testing-templates — This repository provides a collection of reference implementations and patterns for testing Android applications. It… hitherejoe/android-boilerplate — Android-Boilerplate is a modular Android project template pre-configured with dependency injection, reactive streams,… facebook/screenshot-tests-for-android — This project is an automated testing framework designed to capture and verify the visual state of Android interface… openatx/uiautomator2 — uiautomator2 is an Android device automation tool and UI testing library. It functions as a framework for automating… google/earlgrey — EarlGrey is an iOS UI automation test framework that enables writing and running automated tests simulating real user… awaitility/awaitility — Awaitility is a Java asynchronous testing library and conditional polling framework. It provides a fluent…