From fde120df6db033186baa3a624dc1a4d627530b9f Mon Sep 17 00:00:00 2001 From: Yegor Date: Thu, 17 Sep 2020 16:02:06 -0700 Subject: [PATCH] Hide flutter test --platform (#65984) --- packages/flutter_tools/lib/src/commands/test.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/flutter_tools/lib/src/commands/test.dart b/packages/flutter_tools/lib/src/commands/test.dart index fe2391e7b9..6724b450fd 100644 --- a/packages/flutter_tools/lib/src/commands/test.dart +++ b/packages/flutter_tools/lib/src/commands/test.dart @@ -111,10 +111,14 @@ class TestCommand extends FlutterCommand { help: 'Whether to build the assets bundle for testing.\n' 'Consider using --no-test-assets if assets are not required.', ) + // --platform is not supported to be used by Flutter developers. It only + // exists to test the Flutter framework itself and may be removed entirely + // in the future. Developers should either use plain `flutter test`, or + // `package:integration_test` instead. ..addOption('platform', allowed: const ['tester', 'chrome'], + hide: true, defaultsTo: 'tester', - help: 'The platform to run the unit tests on. Defaults to "tester".', ) ..addOption('test-randomize-ordering-seed', help: 'The seed to randomize the execution order of test cases.\n'