diff --git a/dev/bots/test.dart b/dev/bots/test.dart index 2aca003464..c0c732de40 100644 --- a/dev/bots/test.dart +++ b/dev/bots/test.dart @@ -142,6 +142,7 @@ Future main(List args) async { 'web_tests': _runWebUnitTests, 'web_integration_tests': _runWebIntegrationTests, 'web_long_running_tests': _runWebLongRunningTests, + 'flutter_plugins': _runFlutterPluginsTests, }); } on ExitException catch (error) { error.apply(); @@ -860,6 +861,47 @@ Future _runWebLongRunningTests() async { await _stopChromeDriver(); } +/// Executes the test suite for the flutter/plugins repo. +Future _runFlutterPluginsTests() async { + Future runAnalyze() async { + print('${green}Running analysis for flutter/plugins$reset'); + final Directory checkout = Directory.systemTemp.createTempSync('plugins'); + await runCommand( + 'git', + [ + '-c', + 'core.longPaths=true', + 'clone', + 'https://github.com/flutter/plugins.git', + '.' + ], + workingDirectory: checkout.path, + ); + await runCommand( + pub, + [ + 'global', + 'activate', + 'flutter_plugin_tools', + ], + workingDirectory: checkout.path, + ); + await runCommand( + pub, + [ + 'global', + 'run', + 'flutter_plugin_tools', + 'analyze', + ], + workingDirectory: checkout.path, + ); + } + await selectSubshard({ + 'analyze': runAnalyze, + }); +} + // The `chromedriver` process created by this test. // // If an existing chromedriver is already available on port 4444, the existing