@@ -96,18 +96,31 @@ update=.
96
96
# shell script from that same directory, and the "extra_tests.dart"
97
97
# program in the "dev" directory, run via "dart".
98
98
#
99
- # These commands must work identically on Windows, macOS, and Linux.
100
- # This generally means you want to limit yourself to simple commands
101
- # like `flutter test`. For anything more elaborate, consider creating
102
- # a "tests" shell script to run on macOS and Linux and a "tests.bat"
103
- # batch file to run on Windows (referencing it without the extension
104
- # here should mean that in runs the shell script on Unix systems and
105
- # the batch file on Windows, because of how Windows looks up
106
- # commands). On Windows, these commands are executed via `CMD.EXE /S
107
- # /C "command..."`.
99
+ # Commands specified using "test=" must work identically on Windows,
100
+ # macOS, and Linux. This generally means you want to limit yourself to
101
+ # simple commands like `flutter test`. For anything more elaborate,
102
+ # consider creating a "tests" shell script to run on macOS and Linux
103
+ # and a "tests.bat" batch file to run on Windows (referencing it
104
+ # without the extension here should mean that in runs the shell script
105
+ # on Unix systems and the batch file on Windows, because of how
106
+ # Windows looks up commands). On Windows, these commands are executed
107
+ # via `CMD.EXE /S /C "command..."`.
108
+ #
109
+ # Alternatively, you can use a platform-specific test line:
110
+ # test.windows= to run a command on Windows only.
111
+ # test.macos= to run a command on MacOS only.
112
+ # test.linux= to run a command on Linux only.
113
+ # test.posix= to run a command on MacOS and Linux only.
114
+ #
115
+ # There must be sufficient test lines specified such that tests are
116
+ # available on each of Windows, MacOS, and Linux. In the example
117
+ # below, we run mytest.bat on Windows and mytest.sh on MacOS and Linux
118
+ # (in both cases, from the "scripts" directory).
108
119
test=flutter test
109
120
test=more_tests
110
121
test=dart dev/extra_tests.dart
122
+ test.windows=scripts\mytest.bat
123
+ test.posix=scripts/mytest.sh
111
124
112
125
# To test your tests, check out the flutter/flutter repository and
113
126
# then, from the root of that repository, run:
0 commit comments