InstantAnimationsRule

class InstantAnimationsRule : TestRule

Sets animation duration scale to 0 so all animations run instantly. Use this with Paparazzi to skip animations and snapshot their terminal state.

Note that animation side effects are still performed, including calls like AnimatorListener.onAnimationEnd. This way views from fade-ins and moves are rendered as they do when the animations complete.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun apply(base: Statement, description: Description): Statement