I am running Espresso tests in the Travis CI. When I run my tests in my device, I normally disable all my animations so I don't have to use Thread.sleep all the time.
But I really don't know how to do this in the Travis CI, so my tests fail without the Thread.sleep. I looked over the internet... but I didn't find any tutorial about how to do disable the animations in the emulator
I could use idling resource in Espresso, I know. But some times I would prefer not to.
If you try @azizbekian's path, I wrote about this here, created new test rules here and tested it here
I confirm @Testujaca Malpeczka path works on Travis-ci for Android APIs 17-22 as discussed here
If you are looking for a solution for latest Android APIs and tools, work in progress here and here
It also works in Circle-ci and probably any continuous integration build server, see broken link here
My extended test rules work for Android APIs 15-22, and there was a bug in Android 23 emulator.
I'll try it for later versions 24+ using android-topeka sample another day, probably it works.
Any help, improvement or effective alternative using
sdkmanager
would be much appreciated.If it possible use adb shell command:
tested on jenkins ci