Class

TestContext

Provides storage of test related entities that must be accessible by anything other than ComposeUiTest and friends, for example the InputDispatcher or the implementation of some assertions and actions.

Source set: Common
public class TestContext internal constructor(
    internal val testOwner: TestOwner,
    internal val boundsAssertionTolerance: Dp = Dp.Unspecified,
)

Provides storage of test related entities that must be accessible by anything other than ComposeUiTest and friends, for example the InputDispatcher or the implementation of some assertions and actions.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: