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

Unified Diff: doc/package_config.md

Issue 1715583003: Use boolean selector syntax for tags. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Code review changes 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 | « README.md ('k') | lib/src/backend/metadata.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 b09089d0c6829885bad30f59b6560b1c1ea0ce14..82aaf68a11e11e4e69a73389069fa974e5ad3313 100644
--- a/doc/package_config.md
+++ b/doc/package_config.md
@@ -182,9 +182,9 @@ reporter: expanded
## Configuring Tags
The `tag` field can be used to apply [test configuration](#test-configuration)
-to all tests [with a given tag][tagging tests]. It takes a map from tag names to
-configuration maps. These configuration maps are just like the top level of the
-configuration file, except that they may not contain
+to all tests [with a given tag][tagging tests] or set of tags. It takes a map
+from tag selectors to configuration maps. These configuration maps are just like
+the top level of the configuration file, except that they may not contain
[runner configuration](#runner-configuration).
[tagging tests]: https://github.com/dart-lang/test/blob/master/README.md#tagging-tests
@@ -210,6 +210,18 @@ tags:
ruby:
```
+You can also use [boolean selector syntax][] to define configuration that
+involves multiple tags. For example:
+
+[boolean selector syntax]: https://github.com/dart-lang/boolean_selector/blob/master/README.md
+
+```yaml
+tags:
+ # Tests that invoke sub-processes tend to be a little slower.
+ ruby || python:
+ timeout: 1.5x
+```
+
Tag configuration is applied at whatever level the tag appears—so if a group is
tagged as `integration`, its timeout will take precedence over the suite's
timeout but not any tests'. If the group itself had a timeout declared, the
« no previous file with comments | « README.md ('k') | lib/src/backend/metadata.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698