OLD | NEW |
1 Each package may include a configuration file that applies to the package as a | 1 Each package may include a configuration file that applies to the package as a |
2 whole. This file can be used to provide custom defaults for various options, to | 2 whole. This file can be used to provide custom defaults for various options, to |
3 define configuration for multiple files, and more. | 3 define configuration for multiple files, and more. |
4 | 4 |
5 The file is named `dart_test.yaml` and lives at the root of the package, next to | 5 The file is named `dart_test.yaml` and lives at the root of the package, next to |
6 the package's pubspec. Like the pubspec, it's a [YAML][] file. Here's an | 6 the package's pubspec. Like the pubspec, it's a [YAML][] file. Here's an |
7 example: | 7 example: |
8 | 8 |
9 [YAML]: http://yaml.org/ | 9 [YAML]: http://yaml.org/ |
10 | 10 |
11 ```yaml | 11 ```yaml |
12 # This package's tests are very slow. Double the default timeout. | 12 # This package's tests are very slow. Double the default timeout. |
13 timeout: 2x | 13 timeout: 2x |
14 | 14 |
15 # This is a browser-only package, so test on content shell by default. | 15 # This is a browser-only package, so test on content shell by default. |
16 platforms: [content-shell] | 16 platforms: [content-shell] |
17 ``` | 17 ``` |
18 | 18 |
19 * [Config Fields](#config-fields) | 19 * [Config Fields](#config-fields) |
| 20 * [`paths`](#paths) |
| 21 * [`filename`](#filename) |
| 22 * [`platforms`](#platforms) |
| 23 * [`concurrency`](#concurrency) |
| 24 * [`pub_serve`](#pub_serve) |
| 25 * [`timeout`](#timeout) |
| 26 * [`reporter`](#reporter) |
| 27 * [`verbose_trace`](#verbose_trace) |
| 28 * [`js_trace`](#js_trace) |
20 | 29 |
21 ## Config Fields | 30 ## Config Fields |
22 | 31 |
23 These fields directly affect the behavior of the test runner. They go at the | 32 These fields directly affect the behavior of the test runner. They go at the |
24 root of the configuration file. | 33 root of the configuration file. |
25 | 34 |
26 ### `paths` | 35 ### `paths` |
27 | 36 |
28 This field indicates the default paths that the test runner should run. These | 37 This field indicates the default paths that the test runner should run. These |
29 paths are usually directories, although single filenames may be used as well. | 38 paths are usually directories, although single filenames may be used as well. |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 | 149 |
141 This boolean field controls whether or not stack traces caused by errors that | 150 This boolean field controls whether or not stack traces caused by errors that |
142 occur while running Dart compiled to JS are converted back to Dart style. This | 151 occur while running Dart compiled to JS are converted back to Dart style. This |
143 conversion uses the source map generated by `dart2js` to approximate the | 152 conversion uses the source map generated by `dart2js` to approximate the |
144 original Dart line, column, and in some cases member name for each stack frame. | 153 original Dart line, column, and in some cases member name for each stack frame. |
145 It defaults to `false`. | 154 It defaults to `false`. |
146 | 155 |
147 ```yaml | 156 ```yaml |
148 js_trace: true | 157 js_trace: true |
149 ``` | 158 ``` |
OLD | NEW |