OLD | NEW |
---|---|
1 ##0.12.0 | 1 ##0.12.0-alpha.0 |
2 | 2 |
3 * Added support for a test runner, which can be run via `pub run | |
4 unittest:unittest`. By default it runs all files in the `test/` directory that | |
5 end in `_test.dart` and aren't in a `packages/` directory. | |
kevmoo
2015/02/19 23:13:18
Clarify. Is this recursive? If not, the packages d
| |
6 | |
7 * As part of moving to a runner-based model, most test configuration is moving | |
8 out of the test file and into the runner. As such, many ancillary APIs are | |
9 stubbed out and marked as deprecated. They still exist to make adoption | |
10 easier, but they're now no-ops and will be removed before the stable 0.12.0 | |
11 release. These APIs include `skip_` and `solo_` functions, `Configuration` and | |
12 all its subclasses, `TestCase`, `TestFunction`, `unittestConfiguration`, | |
13 `formatStacks`, `filterStacks`, `groupSep`, `logMessage`, `testCases`, | |
14 `BREATH_INTERVAL`, `currentTestCase`, `PASS`, `FAIL`, `ERROR`, `filterTests`, | |
15 `runTests`, `ensureInitialized`, `setSoloTest`, `enableTest`, `disableTest`, | |
16 and `withTestEnvironment`. | |
17 | |
3 * Removed `FailureHandler`, `DefaultFailureHandler`, | 18 * Removed `FailureHandler`, `DefaultFailureHandler`, |
4 `configureExpectFailureHandler`, and `getOrCreateExpectFailureHandler` which | 19 `configureExpectFailureHandler`, and `getOrCreateExpectFailureHandler` which |
5 are exported from the `matcher` package and will be removed. They existed | 20 used to be exported from the `matcher` package. They existed to enable |
6 to enable integration between `unittest` and `matcher` that is being | 21 integration between `unittest` and `matcher` that has been streamlined. |
7 streamlined. | |
8 | 22 |
9 * Moved a number of APIs from `matcher` into `unittest`, including: | 23 * Moved a number of APIs from `matcher` into `unittest`, including: |
10 `completes`, `completion`, `ErrorFormatter`, `expect`,`fail`, `prints`, | 24 `completes`, `completion`, `ErrorFormatter`, `expect`,`fail`, `prints`, |
11 `TestFailure`, `Throws`, and all of the `throws` methods. | 25 `TestFailure`, `Throws`, and all of the `throws` methods. |
12 | 26 |
13 * `expect` no longer has a named `failureHandler` argument. | 27 * `expect` no longer has a named `failureHandler` argument. |
14 | 28 |
15 * `expect` added an optional `formatter` argument. | 29 * `expect` added an optional `formatter` argument. |
16 | 30 |
17 * `completion` argument `id` renamed to `description`. | 31 * `completion` argument `id` renamed to `description`. |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
123 * **NEW!** `expectAsyncUntil` replaces the now deprecated `expectAsyncUntil0`, | 137 * **NEW!** `expectAsyncUntil` replaces the now deprecated `expectAsyncUntil0`, |
124 `expectAsyncUntil1` and `expectAsyncUntil2` | 138 `expectAsyncUntil1` and `expectAsyncUntil2` |
125 * `TestCase`: | 139 * `TestCase`: |
126 * Removed properties: `setUp`, `tearDown`, `testFunction` | 140 * Removed properties: `setUp`, `tearDown`, `testFunction` |
127 * `enabled` is now get-only | 141 * `enabled` is now get-only |
128 * Removed methods: `pass`, `fail`, `error` | 142 * Removed methods: `pass`, `fail`, `error` |
129 * `interactive_html_config.dart` has been removed. | 143 * `interactive_html_config.dart` has been removed. |
130 * `runTests`, `tearDown`, `setUp`, `test`, `group`, `solo_test`, and | 144 * `runTests`, `tearDown`, `setUp`, `test`, `group`, `solo_test`, and |
131 `solo_group` now throw a `StateError` if called while tests are running. | 145 `solo_group` now throw a `StateError` if called while tests are running. |
132 * `rerunTests` has been removed. | 146 * `rerunTests` has been removed. |
OLD | NEW |