Repository navigation
Test integration_test from native side during presubmit #87770
Copy link
Copy link
Open
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecta: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsc: contributor-productivityTeam-specific productivity, code health, technical debt.Team-specific productivity, code health, technical debt.f: integration_testThe flutter/packages/integration_test pluginThe flutter/packages/integration_test pluginframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team
Description
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:
flutter/dev/devicelab/bin/tasks/native_ui_tests_ios32.dart
Lines 47 to 72 in 0c81077
| 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, | |
| ); |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecta: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsc: contributor-productivityTeam-specific productivity, code health, technical debt.Team-specific productivity, code health, technical debt.f: integration_testThe flutter/packages/integration_test pluginThe flutter/packages/integration_test pluginframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team
Activity
ricardoamador commentedon Aug 23, 2023
This is a test issue.