OLD | NEW |
1 ### 0.12.0-rc.2 | 1 ## 0.12.0 |
2 | 2 |
3 * Allow Future matchers and `expectAsync` to prevent tests' | 3 ### Test Runner |
4 `tearDown`s from completing. | |
5 | 4 |
6 ### 0.12.0-rc.1 | 5 `0.12.0` adds support for a test runner, which can be run via `pub run |
| 6 test:test` (or `pub run test` in Dart 1.10). By default it runs all files |
| 7 recursively in the `test/` directory that end in `_test.dart` and aren't in a |
| 8 `packages/` directory. |
7 | 9 |
8 * Remove `handleExternalError`. This was never used in practice and its function | 10 The test runner supports running tests on the Dart VM and many different |
9 was unclear. | 11 browsers. Test files can use the `@TestOn` annotation to declare which platforms |
| 12 they support. For more information on this and many more new features, see [the |
| 13 README](README). |
10 | 14 |
11 * If a test suite's `main()` method returns a `Future`, tests may be declared | 15 [README]: https://github.com/dart-lang/test/blob/master/README.md |
12 until that `Future` returns. | |
13 | 16 |
14 ### 0.12.0-rc.0 | 17 ### Removed and Changed APIs |
15 | 18 |
16 * Tests, groups, and suites can now be configured on a platform-by-platform | 19 As part of moving to a runner-based model, most test configuration is moving out |
17 basis. Tests and groups are configured using the `onPlatform` named argument; | 20 of the test file and into the runner. As such, many ancillary APIs have been |
18 suites are configured using the `@OnPlatform` annotation. See [the | 21 removed. These APIs include `skip_` and `solo_` functions, `Configuration` and |
19 README][onPlatform] for more information. | 22 all its subclasses, `TestCase`, `TestFunction`, `testConfiguration`, |
| 23 `formatStacks`, `filterStacks`, `groupSep`, `logMessage`, `testCases`, |
| 24 `BREATH_INTERVAL`, `currentTestCase`, `PASS`, `FAIL`, `ERROR`, `filterTests`, |
| 25 `runTests`, `ensureInitialized`, `setSoloTest`, `enableTest`, `disableTest`, and |
| 26 `withTestEnvironment`. |
20 | 27 |
21 [onPlatform]: https://github.com/dart-lang/test/blob/master/README.md#platform-s
pecific-configuration | 28 `FailureHandler`, `DefaultFailureHandler`, `configureExpectFailureHandler`, and |
| 29 `getOrCreateExpectFailureHandler` which used to be exported from the `matcher` |
| 30 package have also been removed. They existed to enable integration between |
| 31 `test` and `matcher` that has been streamlined. |
22 | 32 |
23 * Add a `--reporter` flag and an expanded reporter that prints each test on its | 33 A number of APIs from `matcher` have been into `test`, including: `completes`, |
24 own line. | 34 `completion`, `ErrorFormatter`, `expect`,`fail`, `prints`, `TestFailure`, |
| 35 `Throws`, and all of the `throws` methods. Some of these have changed slightly: |
25 | 36 |
26 * Properly ignore unrelated `link` tags in custom HTML. | 37 * `expect` no longer has a named `failureHandler` argument. |
27 | 38 |
28 * Preserve the stack traces for load errors in isolates and iframes. | 39 * `expect` added an optional `formatter` argument. |
29 | 40 |
30 * Stop `pub serve` from emitting a duplicate-asset error for tests with custom | 41 * `completion` argument `id` renamed to `description`. |
31 HTML files. | |
32 | |
33 * When running a test suite via `dart path/to/test.dart`, throw an exception if | |
34 the suite fails so that the exit code is set properly. | |
35 | |
36 * Add support for running on Windows and Internet Explorer. | |
37 | |
38 ### 0.12.0-beta.10 | |
39 | |
40 * Fix running browser tests in subdirectories. | |
41 | |
42 ### 0.12.0-beta.9 | |
43 | |
44 * A browser test may use a custom HTML file. See [the README][custom html] for | |
45 more information. | |
46 | |
47 [custom html]: https://github.com/dart-lang/test/blob/master/README.md#running-t
ests-with-custom-html | |
48 | |
49 * Tests, groups, and suites may be declared as skipped. Tests and groups are | |
50 skipped using the `skip` named argument; suites are skipped using the `@Skip` | |
51 annotation. See [the README][skip] for more information. | |
52 | |
53 [skip]: https://github.com/dart-lang/test/blob/master/README.md#skipping-tests | |
54 | |
55 * Fix running VM tests against `pub serve`. | |
56 | |
57 * More gracefully handle browser errors. | |
58 | |
59 * Properly load Dartium from the Dart Editor when possible. | |
60 | |
61 ### 0.12.0-beta.8 | |
62 | |
63 * Add support for configuring timeouts on a test, group, and suite basis. Test | |
64 and group timeouts are configured with the `timeout` named argument; suites | |
65 are configured using the `@Timeout` annotation. See [the README][timeout] for | |
66 more information. | |
67 | |
68 [timeout]: https://github.com/dart-lang/test/blob/master/README.md#timeouts | |
69 | |
70 * Support running tests on Safari. | |
71 | |
72 * Add a `--version` flag. | |
73 | |
74 * Add an animation to run in the browser while testing. | |
75 | |
76 ### 0.12.0-beta.7 | |
77 | |
78 * Browser tests can now load assets by making HTTP requests to the corresponding | |
79 relative URLs. | |
80 | |
81 * Add support for running tests on Dartium and the Dartium content shell. | |
82 | |
83 * Add support for running tests on [PhantomJS](http://phantomjs.org/). | |
84 | |
85 ### 0.12.0-beta.6 | |
86 | |
87 * Add the ability to run multiple test suites concurrently. By default a number | |
88 of concurrent test suites will be run equal to half the machine's processors; | |
89 this can be controlled with the `--concurrency` flag. | |
90 | |
91 * Expose load errors as test failures rather than having them kill the entire | |
92 process. | |
93 | |
94 * Add support for running tests on Firefox. | |
95 | |
96 ### 0.12.0-beta.5 | |
97 | |
98 * Add a `--pub-serve` flag that runs tests against a `pub serve` instance. | |
99 **This feature is only supported on Dart `1.9.2` and higher.** | |
100 | |
101 * When the test runner is killed prematurely, it will clean up its temporary | |
102 directories and give the current test a chance to run its `tearDown` logic. | |
103 | |
104 ### 0.12.0-beta.4 | |
105 | |
106 * Fix a package-root bug. | |
107 | |
108 ### 0.12.0-beta.3 | |
109 | |
110 * Add support for `shelf` `0.6.0`. | |
111 | |
112 * Fix a "failed to load" bug on Windows. | |
113 | |
114 ### 0.12.0-beta.2 | |
115 | |
116 * Rename the package to `test`. The `unittest` package will continue to exist | |
117 through the `0.12.0` cycle, but it's deprecated and will just export the | |
118 `test` package. | |
119 | |
120 * Remove the deprecated members from `test`. These members will remain in | |
121 `unittest` for now. | |
122 | |
123 ### 0.12.0-beta.1 | |
124 | |
125 * Add a `--name` (shorthand `-n`) flag to the test runner for selecting which | |
126 test to run. | |
127 | |
128 * Ensure that `print()` in tests always prints on its own line. | |
129 | |
130 * Forward `print()`s from browser tests to the command-line reporter. | |
131 | |
132 * Add a missing dependency on `string_scanner`. | |
133 | |
134 ## 0.12.0-beta.0 | |
135 | |
136 * Added support for a test runner, which can be run via `pub run | |
137 test:test`. By default it runs all files recursively in the `test/` | |
138 directory that end in `_test.dart` and aren't in a `packages/` directory. | |
139 | |
140 * As part of moving to a runner-based model, most test configuration is moving | |
141 out of the test file and into the runner. As such, many ancillary APIs are | |
142 stubbed out and marked as deprecated. They still exist to make adoption | |
143 easier, but they're now no-ops and will be removed before the stable 0.12.0 | |
144 release. These APIs include `skip_` and `solo_` functions, `Configuration` and | |
145 all its subclasses, `TestCase`, `TestFunction`, `testConfiguration`, | |
146 `formatStacks`, `filterStacks`, `groupSep`, `logMessage`, `testCases`, | |
147 `BREATH_INTERVAL`, `currentTestCase`, `PASS`, `FAIL`, `ERROR`, `filterTests`, | |
148 `runTests`, `ensureInitialized`, `setSoloTest`, `enableTest`, `disableTest`, | |
149 and `withTestEnvironment`. | |
150 | |
151 * Removed `FailureHandler`, `DefaultFailureHandler`, | |
152 `configureExpectFailureHandler`, and `getOrCreateExpectFailureHandler` which | |
153 used to be exported from the `matcher` package. They existed to enable | |
154 integration between `test` and `matcher` that has been streamlined. | |
155 | |
156 * Moved a number of APIs from `matcher` into `test`, including: | |
157 `completes`, `completion`, `ErrorFormatter`, `expect`,`fail`, `prints`, | |
158 `TestFailure`, `Throws`, and all of the `throws` methods. | |
159 | |
160 * `expect` no longer has a named `failureHandler` argument. | |
161 | |
162 * `expect` added an optional `formatter` argument. | |
163 | |
164 * `completion` argument `id` renamed to `description`. | |
165 | |
166 * Removed several members from `SimpleConfiguration` that relied on removed | |
167 functionality: `onExpectFailure`, `stopTestOnExpectFailure`, and 'name'. | |
168 | 42 |
169 ##0.11.5+1 | 43 ##0.11.5+1 |
170 | 44 |
171 * Internal code cleanups and documentation improvements. | 45 * Internal code cleanups and documentation improvements. |
172 | 46 |
173 ##0.11.5 | 47 ##0.11.5 |
174 | 48 |
175 * Bumped the version constraint for `matcher`. | 49 * Bumped the version constraint for `matcher`. |
176 | 50 |
177 ##0.11.4 | 51 ##0.11.4 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 * **NEW!** `expectAsyncUntil` replaces the now deprecated `expectAsyncUntil0`, | 144 * **NEW!** `expectAsyncUntil` replaces the now deprecated `expectAsyncUntil0`, |
271 `expectAsyncUntil1` and `expectAsyncUntil2` | 145 `expectAsyncUntil1` and `expectAsyncUntil2` |
272 * `TestCase`: | 146 * `TestCase`: |
273 * Removed properties: `setUp`, `tearDown`, `testFunction` | 147 * Removed properties: `setUp`, `tearDown`, `testFunction` |
274 * `enabled` is now get-only | 148 * `enabled` is now get-only |
275 * Removed methods: `pass`, `fail`, `error` | 149 * Removed methods: `pass`, `fail`, `error` |
276 * `interactive_html_config.dart` has been removed. | 150 * `interactive_html_config.dart` has been removed. |
277 * `runTests`, `tearDown`, `setUp`, `test`, `group`, `solo_test`, and | 151 * `runTests`, `tearDown`, `setUp`, `test`, `group`, `solo_test`, and |
278 `solo_group` now throw a `StateError` if called while tests are running. | 152 `solo_group` now throw a `StateError` if called while tests are running. |
279 * `rerunTests` has been removed. | 153 * `rerunTests` has been removed. |
OLD | NEW |