OLD | NEW |
(Empty) | |
| 1 ## 0.12.4+7 |
| 2 |
| 3 * Support `http_parser` 1.0.0. |
| 4 |
| 5 ## 0.12.4+6 |
| 6 |
| 7 * Fix a broken link in the README. |
| 8 |
| 9 ## 0.12.4+5 |
| 10 |
| 11 * Internal changes only. |
| 12 |
| 13 ## 0.12.4+4 |
| 14 |
| 15 * Widen the Dart SDK constraint to include `1.13.0`. |
| 16 |
| 17 ## 0.12.4+3 |
| 18 |
| 19 * Make source maps work properly in the browser when not using `--pub-serve`. |
| 20 |
| 21 ## 0.12.4+2 |
| 22 |
| 23 * Fix a memory leak when running many browser tests where old test suites failed |
| 24 to be unloaded when they were supposed to. |
| 25 |
| 26 ## 0.12.4+1 |
| 27 |
| 28 * Require Dart SDK >= `1.11.0` and `shelf` >= `0.6.0`, allowing `test` to remove |
| 29 various hacks and workarounds. |
| 30 |
| 31 ## 0.12.4 |
| 32 |
| 33 * Add a `--pause-after-load` flag that pauses the test runner after each suite |
| 34 is loaded so that breakpoints and other debugging annotations can be added. |
| 35 Currently this is only supported on browsers. |
| 36 |
| 37 * Add a `Timeout.none` value indicating that a test should never time out. |
| 38 |
| 39 * The `dart-vm` platform selector variable is now `true` for Dartium and content |
| 40 shell. |
| 41 |
| 42 * The compact reporter no longer prints status lines that only update the clock |
| 43 if they would get in the way of messages or errors from a test. |
| 44 |
| 45 * The expanded reporter no longer double-prints the descriptions of skipped |
| 46 tests. |
| 47 |
| 48 ## 0.12.3+9 |
| 49 |
| 50 * Widen the constraint on `analyzer` to include `0.26.0`. |
| 51 |
| 52 ## 0.12.3+8 |
| 53 |
| 54 * Fix an uncaught error that could crop up when killing the test runner process |
| 55 at the wrong time. |
| 56 |
| 57 ## 0.12.3+7 |
| 58 |
| 59 * Add a missing dependency on the `collection` package. |
| 60 |
| 61 ## 0.12.3+6 |
| 62 |
| 63 **This version was unpublished due to [issue 287][].** |
| 64 |
| 65 * Properly report load errors caused by failing to start browsers. |
| 66 |
| 67 * Substantially increase browser timeouts. These timeouts are the cause of a lot |
| 68 of flakiness, and now that they don't block test running there's less harm in |
| 69 making them longer. |
| 70 |
| 71 ## 0.12.3+5 |
| 72 |
| 73 **This version was unpublished due to [issue 287][].** |
| 74 |
| 75 * Fix a crash when skipping tests because their platforms don't match. |
| 76 |
| 77 ## 0.12.3+4 |
| 78 |
| 79 **This version was unpublished due to [issue 287][].** |
| 80 |
| 81 * The compact reporter will update the timer every second, rather than only |
| 82 updating it occasionally. |
| 83 |
| 84 * The compact reporter will now print the full, untruncated test name before any |
| 85 errors or prints emitted by a test. |
| 86 |
| 87 * The expanded reporter will now *always* print the full, untruncated test name. |
| 88 |
| 89 ## 0.12.3+3 |
| 90 |
| 91 **This version was unpublished due to [issue 287][].** |
| 92 |
| 93 * Limit the number of test suites loaded at once. This helps ensure that the |
| 94 test runner won't run out of memory when running many test suites that each |
| 95 load a large amount of code. |
| 96 |
| 97 ## 0.12.3+2 |
| 98 |
| 99 **This version was unpublished due to [issue 287][].** |
| 100 |
| 101 [issue 287]: https://github.com/dart-lang/test/issues/287 |
| 102 |
| 103 * Improve the display of syntax errors in VM tests. |
| 104 |
| 105 * Work around a [Firefox bug][]. Computed styles now work in tests on Firefox. |
| 106 |
| 107 [Firefox bug]: https://bugzilla.mozilla.org/show_bug.cgi?id=548397 |
| 108 |
| 109 * Fix a bug where VM tests would be loaded from the wrong URLs on Windows (or in |
| 110 special circumstances on other operating systems). |
| 111 |
| 112 ## 0.12.3+1 |
| 113 |
| 114 * Fix a bug that caused the test runner to crash on Windows because symlink |
| 115 resolution failed. |
| 116 |
| 117 ## 0.12.3 |
| 118 |
| 119 * If a future matched against the `completes` or `completion()` matcher throws |
| 120 an error, that error is printed directly rather than being wrapped in a |
| 121 string. This allows such errors to be captured using the Zone API and improves |
| 122 formatting. |
| 123 |
| 124 * Improve support for Polymer tests. This fixes a flaky time-out error and adds |
| 125 support for Dartifying JavaScript stack traces when running Polymer tests via |
| 126 `pub serve`. |
| 127 |
| 128 * In order to be more extensible, all exception handling within tests now uses |
| 129 the Zone API. |
| 130 |
| 131 * Add a heartbeat to reset a test's timeout whenever the test interacts with the |
| 132 test infrastructure. |
| 133 |
| 134 * `expect()`, `expectAsync()`, and `expectAsyncUntil()` throw more useful errors |
| 135 if called outside a test body. |
| 136 |
| 137 ## 0.12.2 |
| 138 |
| 139 * Convert JavaScript stack traces into Dart stack traces using source maps. This |
| 140 can be disabled with the new `--js-trace` flag. |
| 141 |
| 142 * Improve the browser test suite timeout logic to avoid timeouts when running |
| 143 many browser suites at once. |
| 144 |
| 145 ## 0.12.1 |
| 146 |
| 147 * Add a `--verbose-trace` flag to include core library frames in stack traces. |
| 148 |
| 149 ## 0.12.0 |
| 150 |
| 151 ### Test Runner |
| 152 |
| 153 `0.12.0` adds support for a test runner, which can be run via `pub run |
| 154 test:test` (or `pub run test` in Dart 1.10). By default it runs all files |
| 155 recursively in the `test/` directory that end in `_test.dart` and aren't in a |
| 156 `packages/` directory. |
| 157 |
| 158 The test runner supports running tests on the Dart VM and many different |
| 159 browsers. Test files can use the `@TestOn` annotation to declare which platforms |
| 160 they support. For more information on this and many more new features, see [the |
| 161 README](README). |
| 162 |
| 163 [README]: https://github.com/dart-lang/test/blob/master/README.md |
| 164 |
| 165 ### Removed and Changed APIs |
| 166 |
| 167 As part of moving to a runner-based model, most test configuration is moving out |
| 168 of the test file and into the runner. As such, many ancillary APIs have been |
| 169 removed. These APIs include `skip_` and `solo_` functions, `Configuration` and |
| 170 all its subclasses, `TestCase`, `TestFunction`, `testConfiguration`, |
| 171 `formatStacks`, `filterStacks`, `groupSep`, `logMessage`, `testCases`, |
| 172 `BREATH_INTERVAL`, `currentTestCase`, `PASS`, `FAIL`, `ERROR`, `filterTests`, |
| 173 `runTests`, `ensureInitialized`, `setSoloTest`, `enableTest`, `disableTest`, and |
| 174 `withTestEnvironment`. |
| 175 |
| 176 `FailureHandler`, `DefaultFailureHandler`, `configureExpectFailureHandler`, and |
| 177 `getOrCreateExpectFailureHandler` which used to be exported from the `matcher` |
| 178 package have also been removed. They existed to enable integration between |
| 179 `test` and `matcher` that has been streamlined. |
| 180 |
| 181 A number of APIs from `matcher` have been into `test`, including: `completes`, |
| 182 `completion`, `ErrorFormatter`, `expect`,`fail`, `prints`, `TestFailure`, |
| 183 `Throws`, and all of the `throws` methods. Some of these have changed slightly: |
| 184 |
| 185 * `expect` no longer has a named `failureHandler` argument. |
| 186 |
| 187 * `expect` added an optional `formatter` argument. |
| 188 |
| 189 * `completion` argument `id` renamed to `description`. |
| 190 |
| 191 ##0.11.5+1 |
| 192 |
| 193 * Internal code cleanups and documentation improvements. |
| 194 |
| 195 ##0.11.5 |
| 196 |
| 197 * Bumped the version constraint for `matcher`. |
| 198 |
| 199 ##0.11.4 |
| 200 |
| 201 * Bump the version constraint for `matcher`. |
| 202 |
| 203 ##0.11.3 |
| 204 |
| 205 * Narrow the constraint on matcher to ensure that new features are reflected in |
| 206 unittest's version. |
| 207 |
| 208 ##0.11.2 |
| 209 |
| 210 * Prints a warning instead of throwing an error when setting the test |
| 211 configuration after it has already been set. The first configuration is always |
| 212 used. |
| 213 |
| 214 ##0.11.1+1 |
| 215 |
| 216 * Fix bug in withTestEnvironment where test cases were not reinitialized if |
| 217 called multiple times. |
| 218 |
| 219 ##0.11.1 |
| 220 |
| 221 * Add `reason` named argument to `expectAsync` and `expectAsyncUntil`, which has |
| 222 the same definition as `expect`'s `reason` argument. |
| 223 * Added support for private test environments. |
| 224 |
| 225 ##0.11.0+6 |
| 226 |
| 227 * Refactored package tests. |
| 228 |
| 229 ##0.11.0+5 |
| 230 |
| 231 * Release test functions after each test is run. |
| 232 |
| 233 ##0.11.0+4 |
| 234 |
| 235 * Fix for [20153](https://code.google.com/p/dart/issues/detail?id=20153) |
| 236 |
| 237 ##0.11.0+3 |
| 238 |
| 239 * Updated maximum `matcher` version. |
| 240 |
| 241 ##0.11.0+2 |
| 242 |
| 243 * Removed unused files from tests and standardized remaining test file names. |
| 244 |
| 245 ##0.11.0+1 |
| 246 |
| 247 * Widen the version constraint for `stack_trace`. |
| 248 |
| 249 ##0.11.0 |
| 250 |
| 251 * Deprecated methods have been removed: |
| 252 * `expectAsync0`, `expectAsync1`, and `expectAsync2` - use `expectAsync` |
| 253 instead |
| 254 * `expectAsyncUntil0`, `expectAsyncUntil1`, and `expectAsyncUntil2` - use |
| 255 `expectAsyncUntil` instead |
| 256 * `guardAsync` - no longer needed |
| 257 * `protectAsync0`, `protectAsync1`, and `protectAsync2` - no longer needed |
| 258 * `matcher.dart` and `mirror_matchers.dart` have been removed. They are now in |
| 259 the `matcher` package. |
| 260 * `mock.dart` has been removed. It is now in the `mock` package. |
| 261 |
| 262 ##0.10.1+2 |
| 263 |
| 264 * Fixed deprecation message for `mock`. |
| 265 |
| 266 ##0.10.1+1 |
| 267 |
| 268 * Fixed CHANGELOG |
| 269 * Moved to triple-slash for all doc comments. |
| 270 |
| 271 ##0.10.1 |
| 272 |
| 273 * **DEPRECATED** |
| 274 * `matcher.dart` and `mirror_matchers.dart` are now in the `matcher` |
| 275 package. |
| 276 * `mock.dart` is now in the `mock` package. |
| 277 * `equals` now allows a nested matcher as an expected list element or map value |
| 278 when doing deep matching. |
| 279 * `expectAsync` and `expectAsyncUntil` now support up to 6 positional arguments |
| 280 and correctly handle functions with optional positional arguments with default |
| 281 values. |
| 282 |
| 283 ##0.10.0 |
| 284 |
| 285 * Each test is run in a separate `Zone`. This ensures that any exceptions that |
| 286 occur is async operations are reported back to the source test case. |
| 287 * **DEPRECATED** `guardAsync`, `protectAsync0`, `protectAsync1`, |
| 288 and `protectAsync2` |
| 289 * Running each test in a `Zone` addresses the need for these methods. |
| 290 * **NEW!** `expectAsync` replaces the now deprecated `expectAsync0`, |
| 291 `expectAsync1` and `expectAsync2` |
| 292 * **NEW!** `expectAsyncUntil` replaces the now deprecated `expectAsyncUntil0`, |
| 293 `expectAsyncUntil1` and `expectAsyncUntil2` |
| 294 * `TestCase`: |
| 295 * Removed properties: `setUp`, `tearDown`, `testFunction` |
| 296 * `enabled` is now get-only |
| 297 * Removed methods: `pass`, `fail`, `error` |
| 298 * `interactive_html_config.dart` has been removed. |
| 299 * `runTests`, `tearDown`, `setUp`, `test`, `group`, `solo_test`, and |
| 300 `solo_group` now throw a `StateError` if called while tests are running. |
| 301 * `rerunTests` has been removed. |
OLD | NEW |