fyi: here is the test spec log and video (attached) from Device Farm (probably only need to install dart):
[DEVICEFARM] Setting up your device. This usually takes 2-3 minutes.
[DEVICEFARM] ########### Start executing testspec ###########
[DEVICEFARM] ########### Entering phase install ###########
[DEVICEFARM] ########### Entering phase pre_test ###########
[DeviceFarm] echo "Install flutter"
Install flutter
[DeviceFarm] if [ $DEVICEFARM_DEVICE_PLATFORM_NAME = "Android" ]; then
# Run EC2 setup code here
tar xf flutter_linux.tar.xz
fi
if [ $DEVICEFARM_DEVICE_PLATFORM_NAME = "iOS" ]; then
# Run Mac setup code here
unzip -qq flutter_macos.zip
fi
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
12 231M 12 28.5M 0 0 26.8M 0 0:00:08 0:00:01 0:00:07 26.8M
35 231M 35 82.3M 0 0 39.8M 0 0:00:05 0:00:02 0:00:03 39.8M
60 231M 60 139M 0 0 45.6M 0 0:00:05 0:00:03 0:00:02 45.6M
81 231M 81 188M 0 0 46.3M 0 0:00:04 0:00:04 --:--:-- 46.3M
100 231M 100 231M 0 0 47.6M 0 0:00:04 0:00:04 --:--:-- 48.3M
[DeviceFarm] mv flutter ~/flutter
[DeviceFarm] echo "export PATH=$PATH:$HOME/flutter/bin:$HOME/flutter/bin/cache/dart-sdk/bin">> ~/.bash_profile
[DeviceFarm] export PATH=$PATH:$HOME/flutter/bin:$HOME/flutter/bin/cache/dart-sdk/bin
[DeviceFarm] flutter doctor
╔════════════════════════════════════════════════════════════════════════════╗
║ A new version of Flutter is available! ║
║ ║
║ To update to the latest version, run "flutter upgrade". ║
╚════════════════════════════════════════════════════════════════════════════╝
╔════════════════════════════════════════════════════════════════════════════╗
║ ║
║ The Flutter tool anonymously reports feature usage statistics and crash ║
║ reports to Google in order to help Google contribute improvements to ║
║ Flutter over time. ║
║ ║
║ Read about data we send with crash reports: ║
║ ║
║ See Google's privacy policy: ║
║ ║
║ Use "flutter config --no-analytics" to disable analytics and crash ║
║ reporting. ║
╚════════════════════════════════════════════════════════════════════════════╝
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.0.0, on Linux, locale en_US.UTF-8)
Android sdkmanager tool not found (/opt/dev/android-sdk-linux/tools/bin/sdkmanager).
Try re-installing or updating your Android SDK,
[DeviceFarm] flutter devices
1 connected device:
SM G960U1 • 4852393932573398 • android-arm64 • Android 8.0.0 (API 26)
[DEVICEFARM] ########### Entering phase test ###########
[DeviceFarm] echo "Navigate to test package directory"
Navigate to test package directory
[DeviceFarm] cd $DEVICEFARM_TEST_PACKAGE_PATH
[DeviceFarm] echo "Start Flutter integration test"
Start Flutter integration test
[DeviceFarm] cd flutter_app
[DeviceFarm] if [ $DEVICEFARM_DEVICE_PLATFORM_NAME = "Android" ]; then
./script/test_android.sh com.example.flutterapp test_driver/main_test.dart
fi
if [ $DEVICEFARM_DEVICE_PLATFORM_NAME = "iOS" ]; then
# ./script/test_ios.sh --test com.example.flutterApp
flutter -v run
fi
Starting Flutter app com.example.flutterapp in debug mode...
failed to clear the 'main' log
Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.flutterapp/.MainActivity (has extras) }
Observatory on port 46245
Local port 4723 forwarded to observatory port 46245
Running integration test test_driver/main_test.dart on app com.example.flutterapp ...
Running "flutter packages get" in flutter_app... 14.1s
00:00 [32m+0 [0m: end-to-end test (setUpAll) [0m
[trace] FlutterDriver: Isolate found with number: 55156156
[trace] FlutterDriver: Isolate is not paused. Assuming application is ready.
[info ] FlutterDriver: Connected to Flutter application.
00:01 [32m+0 [0m: end-to-end test tap on the floating action button; verify counter [0m
00:02 [32m+1 [0m: end-to-end test (tearDownAll) [0m
00:02 [32m+1 [0m: All tests passed! [0m
[DeviceFarm] echo done.
done.
[DEVICEFARM] ########### Entering phase post_test ###########
[DEVICEFARM] ########### Finish executing testspec ###########
[DEVICEFARM] ########### Setting upload permissions ###########
chmod: cannot access ‘/tmp/customer_log_directoryJpS0PM/*’: No such file or directory
[DEVICEFARM] Tearing down your device. Your tests report will come shortly.