As you know espresso tests can be flaky when the animation is on. Then, I created an alfred workflow in order to set easily the animation speed.
- Alfred
- Alfred Powerpack
- Android SDK
- Download the espresso.alfredworkflow file.
- Double click to install
- Download the .alfredworkflow file from Packal.
- Double click to install
See below how to set the PATH:

PATH: /bin:/usr/bin:/Users/zhenleiji//Library/Android/sdk/platform-tools
See below how to set the animation speed:

Copyright 2019 Zhenlei Ji
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.