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

Unified Diff: README.md

Issue 1080103002: Add support for running tests on Dartium. (Closed) Base URL: git@github.com:dart-lang/test@wip.dartium
Patch Set: Code review changes 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 | « CHANGELOG.md ('k') | lib/src/backend/test_platform.dart » ('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 321c43cb328b87d7dd82e33066f22606a718612b..5f1f63eb6832e0deda095a9b6e817baa5e66b91f 100644
--- a/README.md
+++ b/README.md
@@ -134,13 +134,12 @@ valid identifiers are:
* `vm`: Whether the test is running on the command-line Dart VM.
-* `chrome`: Whether the test is running on Google Chrome.
+* `dartium`: Whether the test is running on Dartium.
-* `firefox`: Whether the test is running on Mozilla Firefox.
+* `chrome`: Whether the test is running on Google Chrome.
-* `dart-vm`: Whether the test is running on the Dart VM in any context. For now
- this is identical to `vm`, but it will also be true for Dartium in the future.
- It's identical to `!js`.
+* `dart-vm`: Whether the test is running on the Dart VM in any context,
+ including Dartium. It's identical to `!js`.
* `browser`: Whether the test is running in any browser.
@@ -169,6 +168,22 @@ valid identifiers are:
For example, if you wanted to run a test on every browser but Chrome, you would
write `@TestOn("browser && !chrome")`.
+### Running Tests on Dartium
+
+Tests can be run on [Dartium][] by passing the `-p dartium` flag. If you're
+using the Dart Editor, the test runner will be able to find Dartium
+automatically. However, since it usually isn't installed on a system-wide basis,
+the test runner may not otherwise be able to find the Dartium executable. To use
+it without the Editor, make sure there's an executable called `dartium` (on Mac
+OS or Linux) or `dartium.exe` (on Windows) on your system path.
+
+[Dartium]: https://www.dartlang.org/tools/dartium/
+
+[In the future][issue 63], there will be a more explicit way to configure the
+location of the executable.
+
+[issue 63]: https://github.com/dart-lang/test/issues/63
+
## Asynchronous Tests
Tests written with `async`/`await` will work automatically. The test runner
« no previous file with comments | « CHANGELOG.md ('k') | lib/src/backend/test_platform.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698