Skip to content

Commit 918cc09

Browse files
yjbanovgoderbauer
authored andcommitted
Hide flutter test --platform (flutter#65984)
1 parent d839cde commit 918cc09

File tree

1 file changed

+5
-1
lines changed
  • packages/flutter_tools/lib/src/commands

1 file changed

+5
-1
lines changed

packages/flutter_tools/lib/src/commands/test.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,14 @@ class TestCommand extends FlutterCommand {
111111
help: 'Whether to build the assets bundle for testing.\n'
112112
'Consider using --no-test-assets if assets are not required.',
113113
)
114+
// --platform is not supported to be used by Flutter developers. It only
115+
// exists to test the Flutter framework itself and may be removed entirely
116+
// in the future. Developers should either use plain `flutter test`, or
117+
// `package:integration_test` instead.
114118
..addOption('platform',
115119
allowed: const <String>['tester', 'chrome'],
120+
hide: true,
116121
defaultsTo: 'tester',
117-
help: 'The platform to run the unit tests on. Defaults to "tester".',
118122
)
119123
..addOption('test-randomize-ordering-seed',
120124
help: 'The seed to randomize the execution order of test cases.\n'

0 commit comments

Comments
 (0)