File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -136,9 +136,14 @@ It's also possible to run a test on the Dart VM only by invoking it using `dart
136
136
path/to/test.dart`, but this doesn't load the full test runner and will be
137
137
missing some features.
138
138
139
- The test runner considers any file that ends with ` _test.dart ` to be a test
140
- file. If you don't pass any paths, it will run all the test files in your
141
- ` test/ ` directory, making it easy to test your entire application at once.
139
+ The test runner accepts one or more path arguments. If there are no path
140
+ arguments the runner defaults to running tests under the ` test/ ` directory. When
141
+ running for ` test/ ` or any other directory, the runner will recursively search
142
+ the directory for files that match the test name pattern ` *_test.dart ` . The
143
+ pattern can be overridden in ` dart_test.yaml ` . When a path argument is a file
144
+ instead of a directory it will be run as a test, regardless of the file name.
145
+ Arguments which use shell globbing should avoid including non-test files in the
146
+ path argument.
142
147
143
148
You can select specific tests cases to run by name using `dart test -n "test
144
149
name"`. The string is interpreted as a regular expression, and only tests whose
You can’t perform that action at this time.
0 commit comments