You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: site/docs/commands/test.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,7 @@ very_good test [arguments]
26
26
--test-randomize-ordering-seed The seed to randomize the execution order of test cases within test files.
27
27
--update-goldens Whether "matchesGoldenFile()" calls within your test methods should update the golden files.
28
28
--force-ansi Whether to force ansi output. If not specified, it will maintain the default behavior based on stdout and stderr.
29
+
--platform The platform to run tests on. For Flutter tests, this can be "chrome", "vm", "android", "ios", etc. For Dart tests, this can be "chrome", "vm", etc.
29
30
--dart-define=<foo=bar> Additional key-value pairs that will be available as constants from the String.fromEnvironment, bool.fromEnvironment, int.fromEnvironment, and double.fromEnvironment constructors. Multiple defines can be passed by repeating "--dart-define" multiple times.
Copy file name to clipboardExpand all lines: test/src/commands/test/test_test.dart
+46-2Lines changed: 46 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -27,9 +27,9 @@ const expectedTestUsage = [
27
27
'-h, --help Print this usage information.\n'
28
28
' --coverage Whether to collect coverage information.\n'
29
29
'-r, --recursive Run tests recursively for all nested packages.\n'
30
-
' --[no-]optimization Whether to apply optimizations for test performance.\n'
30
+
' --[no-]optimization Whether to apply optimizations for test performance. Automatically disabled when --platform is specified.\n'
31
31
' (defaults to on)\n'
32
-
'-j, --concurrency The number of concurrent test suites run.\n'
32
+
'-j, --concurrency The number of concurrent test suites run. Automatically set to 1 when --platform is specified.\n'
33
33
' (defaults to "4")\n'
34
34
'-t, --tags Run only tests associated with the specified tags.\n'
35
35
' --exclude-coverage A glob which will be used to exclude files that match from the coverage.\n'
@@ -40,6 +40,7 @@ const expectedTestUsage = [
40
40
' --force-ansi Whether to force ansi output. If not specified, it will maintain the default behavior based on stdout and stderr.\n'
41
41
' --dart-define=<foo=bar> Additional key-value pairs that will be available as constants from the String.fromEnvironment, bool.fromEnvironment, int.fromEnvironment, and double.fromEnvironment constructors. Multiple defines can be passed by repeating "--dart-define" multiple times.\n'
42
42
' --dart-define-from-file=<use-define-config.json|.env> The path of a .json or .env file containing key-value pairs that will be available as environment variables. These can be accessed using the String.fromEnvironment, bool.fromEnvironment, and int.fromEnvironment constructors. Multiple defines can be passed by repeating "--dart-define-from-file" multiple times. Entries from "--dart-define" with identical keys take precedence over entries from these files.\n'
43
+
' --platform=<chrome|vm|android|ios> The platform to run tests on. \n'
0 commit comments