Only run codegen at start of flutter_test (#29171)
diff --git a/dev/bots/test.dart b/dev/bots/test.dart
index 5bf7048..8a2fde4 100644
--- a/dev/bots/test.dart
+++ b/dev/bots/test.dart
@@ -317,6 +317,10 @@
// with --track-widget-creation.
await _runFlutterTest(path.join(flutterRoot, 'examples', 'flutter_gallery'), options: <String>['--track-widget-creation'], tableData: bigqueryApi?.tabledata);
await _runFlutterTest(path.join(flutterRoot, 'examples', 'catalog'), tableData: bigqueryApi?.tabledata);
+ // Smoke test for code generation.
+ await _runFlutterTest(path.join(flutterRoot, 'dev', 'integration_tests', 'codegen'), tableData: bigqueryApi?.tabledata, environment: <String, String>{
+ 'FLUTTER_EXPERIMENTAL_BUILD': 'true',
+ });
print('${bold}DONE: All tests successful.$reset');
}
@@ -581,6 +585,7 @@
bool skip = false,
Duration timeout = _kLongTimeout,
bq.TabledataResourceApi tableData,
+ Map<String, String> environment,
}) async {
final List<String> args = <String>['test']..addAll(options);
if (flutterTestArgs != null && flutterTestArgs.isNotEmpty)
@@ -612,6 +617,7 @@
printOutput: printOutput,
skip: skip,
timeout: timeout,
+ environment: environment,
);
}
@@ -624,6 +630,7 @@
expectNonZeroExit: expectFailure,
timeout: timeout,
beforeExit: formatter.finish,
+ environment: environment,
);
await _processTestOutput(formatter, testOutput, tableData);
} else {