Android Developers
Platform Android Studio Google Play Jetpack Kotlin Docs Games
  • English
  • Bahasa Indonesia
  • Español – América Latina
  • Français
  • Português – Brasil
  • Tiếng Việt
  • 中文 – 简体
  • 中文 – 繁體
  • 日本語
  • 한국어
Sign in
  • Jetpack
Overview Get Started Libraries Compose Community
Android Developers
  • Platform
  • Android Studio
  • Google Play
  • Jetpack
    • Overview
    • Get Started
    • Libraries
    • Compose
    • Community
  • Kotlin
  • Docs
  • Games
  • Overview
  • Documentation
  • Why Compose
  • Tutorial
  • Quick start
  • Foundation
  • Thinking in Compose
  • Managing state
    • Overview
    • Where to hoist state
  • Lifecycle
  • Modifiers
  • Side-effects
  • Phases
  • Architectural layering
  • Performance
    • Overview
    • Tooling
      • Overview
      • Layout Inspector
      • Tracing
    • Best practices
  • Semantics
  • CompositionLocal
  • Development environment
  • Tooling
    • Overview
    • Android Studio support for Compose
    • Relay designer and developer tooling
      • Overview
      • Install Relay
      • Set up your Android project
      • Basic tutorial
        • Overview
        • Create UI Package in Figma
        • Convert the designs to code in Android Studio
        • Make and propagate design updates
        • Content parameters
      • Advanced tutorial
        • Overview
        • Handling design variants
        • Content parameters
        • Add interaction handlers to designs
      • Relay workflow
        • Overview
        • Create UI Packages
        • Add parameters
        • Check errors
        • Share UI Packages
        • Android Studio workflow
        • Understand UI Package & generated code
      • Design-to-code translation details
        • Children parameters
        • Nested package instances
        • Vector graphics
        • Multiple styles in text
        • Absolute positioning within auto layout
        • Fill color
        • Effects
      • Limitations & troubleshooting
      • Experimental features
        • Mapping styles to Compose theme
        • Mapping components to existing code
        • Mapping components tutorial
          • Overview
          • 1-to-1 mapping
          • Mapping with variants
      • Releases
  • Kotlin for Compose
  • Developer ergonomics
  • Bill of Materials
    • Using the Bill of Materials
    • BOM to library version mapping
  • Design
  • Layout
    • Overview
    • Layout basics
    • Material Components and layouts
    • Custom layouts
    • Build adaptive layouts
    • Alignment lines
    • Intrinsic measurements
    • ConstraintLayout
  • Design Systems
    • Overview
    • Material Design 3
    • Migrate from Material 2 to Material 3
    • Material Design 2
    • Custom theming
    • Anatomy of a theme
    • Migrating XML themes to Compose
  • Lists and grids
  • Text
  • Images & graphics
    • Overview
    • Images
      • Overview
      • Loading images
      • ImageBitmap vs ImageVector
      • Material icons
      • Customize an image
      • Custom painter
      • Optimizing performance
    • Graphics
      • Overview
      • Graphics Modifiers
      • Brush
  • Animation
  • Gestures
  • Handling interactions
  • Adopting Compose
  • Adopting Compose in existing apps
    • Overview
    • Migration strategy
    • Adding Compose to your app
    • Interoperability APIs
    • Compose in your existing architecture
    • Compose in your existing UI
  • Adopt Compose for teams
  • Compose and other libraries
  • Architecture
  • Navigation
  • Resources
  • Accessibility
  • Testing
  • Testing cheat sheet
  • List of modifiers
  • Jetpack Compose
  • Jetpack
  • Compose

Testing cheatsheet

Stay organized with collections Save and categorize content based on your preferences.

The Compose testing cheat sheet is a quick reference of some of the most useful Compose test APIs. The cheat sheet is also downloadable in PDF format.

Useful Compose testing APIs

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2023-01-30 UTC.

  • Twitter Twitter
    Follow @AndroidDev on Twitter
  • YouTube YouTube
    Check out Android Developers on YouTube
  • LinkedIn LinkedIn
    Connect with the Android Developers community on LinkedIn
  • More Android

    • Android
    • Android for Enterprise
    • Security
    • Source
    • News
    • Blog
    • Podcasts
  • Discover

    • Gaming
    • Machine Learning
    • Privacy
    • 5G
  • Android Devices

    • Large screens
    • Wear OS
    • Android TV
    • Android for cars
    • Android Things
    • Chrome OS devices
  • Releases

    • Android 13
    • Android 12
    • Android 11
    • Android 10
    • Pie
    • Oreo
    • Nougat
  • Documentation and Downloads

    • Android Studio guide
    • Developers guides
    • API reference
    • Download Studio
    • Android NDK
  • Support

    • Report platform bug
    • Report documentation bug
    • Google Play support
    • Join research studies
Google Developers
  • Android
  • Chrome
  • Firebase
  • Google Cloud Platform
  • All products
  • Privacy
  • License
  • Brand guidelines
  • Get news and tips by email Subscribe
  • English
  • Bahasa Indonesia
  • Español – América Latina
  • Français
  • Português – Brasil
  • Tiếng Việt
  • 中文 – 简体
  • 中文 – 繁體
  • 日本語
  • 한국어