Skip to content

Commit 6882f36

Browse files
Update pub run syntax and remove 404 images (dart-archive/markdown#625)
1 parent cd5a278 commit 6882f36

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

pkgs/markdown/benchmark/input.md

+5-10
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,9 @@ void main() {
8585

8686
## Running Tests
8787

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`.
9089

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`.
9691

9792
It's also possible to run a test on the Dart VM only by invoking it using `dart
9893
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
10398
`test/` directory, making it easy to test your entire application at once.
10499

105100
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`.
107102
`test` will take care of starting the browser and loading the tests, and all
108103
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`.
111106

112107
### Restricting Tests to Certain Platforms
113108

pkgs/markdown/test/version_test.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void main() {
3535
binVersion,
3636
pubspecContent['version'],
3737
reason: 'The version reported by bin/markdown.dart should match the '
38-
'version in pubspec. Run `pub run build_runner build` to update.',
38+
'version in pubspec. Run `dart run build_runner build` to update.',
3939
);
4040
});
4141
}

0 commit comments

Comments
 (0)