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

AndroidComposeTestCaseSetup

class AndroidComposeTestCaseSetup : ComposeTestCaseSetup
kotlin.Any
   ↳ androidx.ui.test.android.AndroidComposeTestCaseSetup

Summary

Public constructors
<init>(testCase: ComposeTestCase, activity: ComponentActivity)

Public methods
Unit

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

Public constructors

<init>

AndroidComposeTestCaseSetup(
    testCase: ComposeTestCase,
    activity: ComponentActivity)

Public methods

performTestWithEventsControl

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.