Google is committed to advancing racial equity for Black communities. See how.

androidx.compose.ui.test.junit4.android

Exceptions

ComposeNotIdleException

Thrown in cases where Compose can't get idle in Espresso's defined time limit.

Top-level functions summary

Unit

Register compose's idling check to Espresso.

Unit

Registers the given clock so Espresso can await the animations subscribed to that clock.

Unit

Unregisters resource registered as part of registerComposeWithEspresso.

Unit

Unregisters the clock that was registered with registerTestClock.

Top-level functions

registerComposeWithEspresso

fun registerComposeWithEspresso(): Unit

Deprecated.

Register compose's idling check to Espresso.

This makes sure that Espresso is able to wait for any pending changes in Compose. This resource is automatically registered when any compose testing APIs are used including createAndroidComposeRule. If you for some reasons want to only use Espresso but still have it wait for Compose being idle you can use this function.

registerTestClock

fun registerTestClock(clock: TestAnimationClock): Unit

Deprecated.

Registers the given clock so Espresso can await the animations subscribed to that clock.

unregisterComposeFromEspresso

fun unregisterComposeFromEspresso(): Unit

Deprecated.

Unregisters resource registered as part of registerComposeWithEspresso.

unregisterTestClock

fun unregisterTestClock(clock: TestAnimationClock): Unit

Deprecated.

Unregisters the clock that was registered with registerTestClock.