cli/flutter_test_command
library
Functions
-
buildFlutterTestArgs(List<String> arguments, {required String suiteEncryptionKey, required String? reportMode, required String? reportFile, required int? timeoutSeconds, required bool verbose, List<String> shardPaths = const [], List<String> shardIds = const [], int? workerIndex, String? progressFile, String? appLogPath, String? appLogDisplayPath, String? artifactRoot, Map<String, dynamic>? serviceOverrides, String artifactDisplayRoot = 'build/ensemble_test_runner', String testEntryRelativePath = TestAppPatcher.testEntryRelativePath, FlutterDevice? physicalDevice, bool hostOwnsServices = false, String? testsAssetPrefix, bool useRuntimeWorkerConfig = false})
→ List<String>
-
Builds the complete, deterministic command line passed to
flutter test.
-
buildFlutterTestWorkerEnvironment({String? suiteEncryptionKey, String? artifactRoot, String artifactDisplayRoot = 'build/ensemble_test_runner', int? workerIndex, String? reportMode, int? timeoutSeconds, required List<String> shardPaths, required List<String> shardIds, required String? reportFile, required String? progressFile, required String? appLogPath, required String? appLogDisplayPath, required Map<String, dynamic>? serviceOverrides, required List<String> arguments})
→ Map<String, String>
-
-
isRunnerPackageRoot(Directory project)
→ bool
-
Only the runner owns its package build cache. Host applications keep their
own Flutter build output; running a suite must not prune the host's cache.
-
planBatchFileFromArguments(List<String> arguments)
→ String?
-
-
pruneFlutterTestKernelCache(Directory project, {int maxBytes = 160 * 1024 * 1024})
→ void
-
Bounds Flutter's generated per-define kernel cache after a suite completes.
Keep recent entries warm while preventing unique test options from growing
the app's ignored build directory without limit.
-
refreshFlutterTestAssetBundle(Directory project)
→ void
-
Removes Flutter's copied unit-test asset bundle before the next test run.
-
validatePlanBatchFile(List<String> arguments)
→ void
-