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

Unified Diff: doc/package_config.md

Issue 1717533002: Add new test configuration fields. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 4 years, 10 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 | lib/src/backend/platform_selector.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: doc/package_config.md
diff --git a/doc/package_config.md b/doc/package_config.md
index 82aaf68a11e11e4e69a73389069fa974e5ad3313..23db939b8101d7c846d29b8c8ae26c94e98e1189 100644
--- a/doc/package_config.md
+++ b/doc/package_config.md
@@ -28,6 +28,8 @@ tags:
* [`timeout`](#timeout)
* [`verbose_trace`](#verbose_trace)
* [`js_trace`](#js_trace)
+ * [`skip`](#skip)
+ * [`test_on`](#test_on)
* [Runner Configuration](#runner-configuration)
* [`paths`](#paths)
* [`filename`](#filename)
@@ -92,6 +94,36 @@ It defaults to `false`.
js_trace: true
```
+### `skip`
+
+This field controls whether or not tests are skipped. It's usually applied to
+[specific tags](#configuring-tags) rather than used at the top level. Like the
+`skip` parameter for [`test()`][test], it can either be a boolean indicating
+whether the tests are skipped or a string indicating the reason they're skipped.
+
+[test]: https://www.dartdocs.org/documentation/test/0.12.10+2/test/test.html
+
+```yaml
+tags:
+ chrome:
+ skip: "Our Chrome launcher is busted. See issue 1234."
+```
+
+### `test_on`
+
+This field declares which platforms a test supports. It's usually applied to
+[specific tags](#configuring-tags) rather than used at the top level. It takes a
+[platform selector][] and only allows a test to run on platforms that match the
+selector.
+
+[platform selector]: https://github.com/dart-lang/test/blob/master/README.md#platform-selectors
+
+```yaml
+tags:
+ # Internet Explorer doesn't support promises yet.
+ promises: {test_on: "browser && !ie"}
+```
+
## Runner Configuration
Unlike [test configuration](#test-configuration), runner configuration affects
« no previous file with comments | « no previous file | lib/src/backend/platform_selector.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698