diff --git a/dev/bots/suite_runners/run_framework_tests.dart b/dev/bots/suite_runners/run_framework_tests.dart index b539c62f2e..00990049d2 100644 --- a/dev/bots/suite_runners/run_framework_tests.dart +++ b/dev/bots/suite_runners/run_framework_tests.dart @@ -247,6 +247,36 @@ Future frameworkTestsRunner() async { await runFixTests('integration_test'); await runFixTests('flutter_driver'); await runPrivateTests(); + + // Run java unit tests for integration_test + // + // Generate Gradle wrapper if it doesn't exist. + Process.runSync( + flutter, + ['build', 'apk', '--config-only'], + workingDirectory: path.join( + flutterRoot, + 'packages', + 'integration_test', + 'example', + 'android', + ), + ); + await runCommand( + path.join(flutterRoot, 'packages', 'integration_test', 'example', 'android', 'gradlew$bat'), + [ + ':integration_test:testDebugUnitTest', + '--tests', + 'dev.flutter.plugins.integration_test.FlutterDeviceScreenshotTest', + ], + workingDirectory: path.join( + flutterRoot, + 'packages', + 'integration_test', + 'example', + 'android', + ), + ); } Future runMisc() async { @@ -289,35 +319,6 @@ Future frameworkTestsRunner() async { '--exclude-tags=web', ], ); - // Run java unit tests for integration_test - // - // Generate Gradle wrapper if it doesn't exist. - Process.runSync( - flutter, - ['build', 'apk', '--config-only'], - workingDirectory: path.join( - flutterRoot, - 'packages', - 'integration_test', - 'example', - 'android', - ), - ); - await runCommand( - path.join(flutterRoot, 'packages', 'integration_test', 'example', 'android', 'gradlew$bat'), - [ - ':integration_test:testDebugUnitTest', - '--tests', - 'dev.flutter.plugins.integration_test.FlutterDeviceScreenshotTest', - ], - workingDirectory: path.join( - flutterRoot, - 'packages', - 'integration_test', - 'example', - 'android', - ), - ); await runFlutterTest(path.join(flutterRoot, 'packages', 'flutter_goldens')); await runFlutterTest(path.join(flutterRoot, 'packages', 'flutter_localizations')); await runFlutterTest(path.join(flutterRoot, 'packages', 'flutter_test'));