Azure provide macOS instance for Android CI environment. On the instance, we can create x86 architecture Android emulator. The emulator is faster than arm’s one. Then, we can run tests which is necessary to launch emulator instances faster.
On ruby_lib_core project, I built the environment for Android and iOS. The project already has over 50 scenarios as functional tests with Appium instance. It also has unit level fast test, of course.
iOS is on simulator. Android is on x86 emulator. Totally, it takes around 15 minutes, so far. I haven’t turned it yet with like useXctestrunFile though. I set them to run 14 jobs at once. Each job can run in 10 min. A few project takes over 10 min.

For iOS jobs, building WDA is the most high cost. We can use pre-build xctestrun file if we turn more, but currently it is enough to build every time. If we can reduce the build time, the test running time should be short over a couple of mins.
For Android jobs, launching emulator takes a couple of mins. If we can use real services or pre-launched devices, the time can be faster.
If you would like to find an example for Azure x Appium environment, feel free to see the Appium project’s code 🙂