Run native iOS and Android integration_test package tests on simulators during CI to validate the native->dart test communication is working.
On iOS this can be done similar to:
|
final String resultBundleTemp = Directory.systemTemp.createTempSync('flutter_native_ui_tests_ios32_xcresult.').path; |
|
final String resultBundlePath = path.join(resultBundleTemp, 'result'); |
|
final int testResultExit = await exec( |
|
'xcodebuild', |
|
<String>[ |
|
'-workspace', |
|
'Runner.xcworkspace', |
|
'-scheme', |
|
'Runner', |
|
'-configuration', |
|
'Release', |
|
'-destination', |
|
'id=${device.deviceId}', |
|
'-resultBundlePath', |
|
resultBundlePath, |
|
'test', |
|
'COMPILER_INDEX_STORE_ENABLE=NO', |
|
'DEVELOPMENT_TEAM=$developmentTeam', |
|
if (codeSignStyle != null) |
|
'CODE_SIGN_STYLE=$codeSignStyle', |
|
if (provisioningProfile != null) |
|
'PROVISIONING_PROFILE_SPECIFIER=$provisioningProfile', |
|
], |
|
workingDirectory: path.join(projectDirectory, 'ios'), |
|
canFail: true, |
|
); |
Run native iOS and Android
integration_testpackage tests on simulators during CI to validate the native->dart test communication is working.On iOS this can be done similar to:
flutter/dev/devicelab/bin/tasks/native_ui_tests_ios32.dart
Lines 47 to 72 in 0c81077