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

Unified Diff: doc/package_config.md

Issue 1709633003: Add the ability to add tags in the test config. (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/runner/configuration.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 c110ec3e0b08702c9b89293bb6e39104c119fea9..b09089d0c6829885bad30f59b6560b1c1ea0ce14 100644
--- a/doc/package_config.md
+++ b/doc/package_config.md
@@ -36,6 +36,7 @@ tags:
* [`pub_serve`](#pub_serve)
* [`reporter`](#reporter)
* [Configuring Tags](#configuring-tags)
+ * [`add_tags`](#add_tags)
## Test Configuration
@@ -218,3 +219,25 @@ If multiple tags appear at the same level, and they have conflicting
configurations, the test runner *does not guarantee* what order they'll be
resolved in. In practice, conflicting configuration is pretty unlikely and it's
easy to just explicitly specify what you want on the test itself.
+
+### `add_tags`
+
+This field adds additional tags. It's technically
+[test configuration](#test-configuration), but it's usually used in more
+specific contexts. For example, when included in a tag's configuration, it can
+be used to enable tag inheritance, where adding one tag implicitly adds other as
+well. It takes a list of tag name strings.
+
+```yaml
+tags:
+ # Any test that spawns a browser.
+ browser:
+ timeout: 2x
+
+ # Tests that spawn specific browsers. These automatically get the browser tag
+ # as well.
+ chrome: {add_tags: [browser]}
+ firefox: {add_tags: [browser]}
+ safari: {add_tags: [browser]}
+ ie: {add_tags: [browser]}
+```
« no previous file with comments | « no previous file | lib/src/runner/configuration.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698