You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.
How do you unit test the animation in the real world?
Let's say I have an animation that transitions between two different states of a view. I would like to check if the two states are fine at the beginning and at the end of the animation, but I don't have a way to do that without introducing delays in my unit test, and moreover it isn't really reliable.
IMHO a solution could be to introduce a flag in POPAnimation that simply disables the animations all together, and simply sets the property to their final states. In this way, the test could be run synchronously on a single thread, and the checks would be trivial.
What is your approach, and eventually what do you think about my solution?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
How do you unit test the animation in the real world?
Let's say I have an animation that transitions between two different states of a view. I would like to check if the two states are fine at the beginning and at the end of the animation, but I don't have a way to do that without introducing delays in my unit test, and moreover it isn't really reliable.
IMHO a solution could be to introduce a flag in POPAnimation that simply disables the animations all together, and simply sets the property to their final states. In this way, the test could be run synchronously on a single thread, and the checks would be trivial.
What is your approach, and eventually what do you think about my solution?
The text was updated successfully, but these errors were encountered: