@@ -85,14 +85,9 @@ void main() {
85
85
86
86
## Running Tests
87
87
88
- A single test file can be run just using ` pub run test:test path/to/test.dart `
89
- (on Dart 1.10, this can be shortened to ` pub run test path/to/test.dart ` ).
88
+ A single test file can be run just using ` dart run test path/to/test.dart ` .
90
89
91
- ![ Single file being run via pub run"] ( https://raw.githubusercontent.com/dart-lang/test/master/image/test1.gif )
92
-
93
- Many tests can be run at a time using ` pub run test:test path/to/dir ` .
94
-
95
- ![ Directory being run via "pub run".] ( https://raw.githubusercontent.com/dart-lang/test/master/image/test2.gif )
90
+ Many tests can be run at a time using ` dart run test path/to/dir ` .
96
91
97
92
It's also possible to run a test on the Dart VM only by invoking it using `dart
98
93
path/to/test.dart`, but this doesn't load the full test runner and will be
@@ -103,11 +98,11 @@ file. If you don't pass any paths, it will run all the test files in your
103
98
` test/ ` directory, making it easy to test your entire application at once.
104
99
105
100
By default, tests are run in the Dart VM, but you can run them in the browser as
106
- well by passing ` pub run test: test -p chrome path/to/test.dart` .
101
+ well by passing ` dart run test -p chrome path/to/test.dart` .
107
102
` test ` will take care of starting the browser and loading the tests, and all
108
103
the results will be reported on the command line just like for VM tests. In
109
- fact, you can even run tests on both platforms with a single command: `pub run
110
- test: test -p " chrome,vm" path/to/test.dart`.
104
+ fact, you can even run tests on both platforms with a single command: `dart run
105
+ test -p chrome,vm path/to/test.dart`.
111
106
112
107
### Restricting Tests to Certain Platforms
113
108
0 commit comments