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

ComposeTestCaseSetup

interface ComposeTestCaseSetup
androidx.ui.test.ComposeTestCaseSetup

Helper interface to run execution-controlled test via ComposeTestRule.

Summary

Public methods
abstract Unit

Takes the content provided via ComposeTestRule#setContent and runs the given test instruction.

Public methods

performTestWithEventsControl

abstract fun performTestWithEventsControl(block: ComposeExecutionControl.() -> Unit): Unit

Takes the content provided via ComposeTestRule#setContent and runs the given test instruction. The test is executed on the main thread and prevents interference from Activity so the frames can be controlled manually. See ComposeExecutionControl for available methods.