Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Unified Diff: README.md

Issue 1097113004: Discourage users from running "dart path/to/file". (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | image/test1.gif » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: README.md
diff --git a/README.md b/README.md
index c3b42027b9e2804cd46a576302944fed75aa6c6b..86fca1a4de2cb690b70c2d176212f58f19943c02 100644
--- a/README.md
+++ b/README.md
@@ -76,18 +76,22 @@ void main() {
## Running Tests
-A single test file can be run just using `dart path/to/test.dart`.
+A single test file can be run just using `pub run test:test path/to/test.dart`
+(on Dart 1.10, this can be shortened to `pub run test path/to/test.dart`).
-![Tests being run via "dart path/to/test.dart".](https://raw.githubusercontent.com/dart-lang/test/master/image/test1.gif)
+![Single file being run via pub run"](https://raw.githubusercontent.com/dart-lang/test/master/image/test1.gif)
-Many tests can be run at a time using `pub run test:test path/to/dir` (on Dart
-1.10, this can be shortened to `pub run test path/to/dir`).
+Many tests can be run at a time using `pub run test:test path/to/dir`.
![Directory being run via "pub run".](https://raw.githubusercontent.com/dart-lang/test/master/image/test2.gif)
-`test` considers any file that ends with `_test.dart` to be a test file. If
-you don't pass any paths, it will run all the test files in your `test/`
-directory, making it easy to test your entire application at once.
+It's also possible to run a test on the Dart VM only by invoking it using `dart
+path/to/test.dart`, but this doesn't load the full test runner and will be
+missing some features.
+
+The test runner considers any file that ends with `_test.dart` to be a test
+file. If you don't pass any paths, it will run all the test files in your
+`test/` directory, making it easy to test your entire application at once.
By default, tests are run in the Dart VM, but you can run them in the browser as
well by passing `pub run test:test -p chrome path/to/test.dart`.
« no previous file with comments | « no previous file | image/test1.gif » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698