Flutter Automation Part 2 - Creating a script to launch integration tests on multiple devices

Опубликовано: 25 Март 2026
на канале: Anton Krasov
894
29

Since our integration test is now ready, we can automate the work with multiple simulators and android emulators. As well as fix some issues from the past, like empty images.

Environment:

macOS 13.0.1 (22A400)
Flutter 3.3.8

Outline:
00:00 - Intro
03:15 - Get a list of iOs simulators
16:20 - Run test on multiple iOs simulators
21:35 - Get a list of Android devices
25:46 - Run test on multiple Android devices
37:20 - iOs and Android together
41:08 - Cleanup screenshots directory
42:00 - First big run
45:45 - Devices filtering
47:50 - Fix an issue with empty images
49:50 - Future.wait → Binding.delayed
50:08 - Fix opened iOs simulator issue
57:55 - Final Run
1:00:38 - Results and Figma plugin