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

Unified Diff: README.md

Issue 1649663003: Add basic support for a configuration file. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 4 years, 11 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 | dart_test.yaml » ('j') | lib/src/runner/configuration/args.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: README.md
diff --git a/README.md b/README.md
index beda9ef1825c43803c57580ae7c67fca446211e6..cabbd1f7915a14dd638eadd9842fb380b5845192 100644
--- a/README.md
+++ b/README.md
@@ -11,6 +11,7 @@
* [Skipping Tests](#skipping-tests)
* [Timeouts](#timeouts)
* [Platform-Specific Configuration](#platform-specific-configuration)
+ * [Whole-Package Configuration](#whole-package-configuration)
* [Debugging](#debugging)
* [Testing with `barback`](#testing-with-barback)
* [Further Reading](#further-reading)
@@ -486,6 +487,31 @@ If multiple platforms match, the configuration is applied in order from first to
last, just as they would in nested groups. This means that for configuration
like duration-based timeouts, the last matching value wins.
+### Whole-Package Configuration
+
+For configuration that applies across multiple files, or even the entire
+package, `test` supports a configuration file called `dart_test.yaml`. At its
+simplest, this file can contain the same sort of configuration that can be
+passed as command-line arguments:
+
+```yaml
+# This package's tests are very slow. Double the default timeout.
+timeout: 2x
+
+# This is a browser-only package, so test on content shell by default.
+platforms: [content-shell]
+```
+
+The configuration file sets new defaults. These defaults can still be overridden
+by command-line arguments, just like the built-in defaults. In the example
+above, you could pass `--platform chrome` to run on Chrome instead of the
+Dartium content shell.
+
+A configuration file can do much more than just set global defaults. See
+[the full documentation][package config] for more details.
+
+[package config]: https://github.com/dart-lang/test/blob/master/doc/package_config.md
+
## Debugging
Tests can be debugged interactively using browsers' built-in development tools,
« no previous file with comments | « no previous file | dart_test.yaml » ('j') | lib/src/runner/configuration/args.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698