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

DisableTransitionsTestRule

class DisableTransitionsTestRule : TestRule
kotlin.Any
   ↳ androidx.compose.ui.test.junit4.DisableTransitionsTestRule

This rule will disable all transition animations for the test. As a convenience, the rule can be turned into a no-op by setting disableTransitions to false, allowing you to put it into a rule chain without branching logic.

Summary

Public constructors
<init>(disableTransitions: Boolean = false)

This rule will disable all transition animations for the test.

Public methods
Statement
apply(base: Statement, description: Description?)

Public constructors

<init>

DisableTransitionsTestRule(disableTransitions: Boolean = false)

This rule will disable all transition animations for the test. As a convenience, the rule can be turned into a no-op by setting disableTransitions to false, allowing you to put it into a rule chain without branching logic.

Public methods

apply

fun apply(
    base: Statement,
    description: Description?
): Statement