commit | 11805dc5775f3043e0bb233dbcf1064e4753b077 | [log] [tgz] |
---|---|---|
author | Nate Bosch <nbosch@google.com> | Thu Jun 01 19:22:03 2023 |
committer | GitHub <noreply@github.com> | Thu Jun 01 19:22:03 2023 |
tree | 8d6b2b00e086252756423b04c8a8db6bb857172e | |
parent | 32769215bd52c0ce87f768ee3573dffd2021c158 [diff] |
Migrate to Dart 3 (#2024) Bump the min SDK to `3.0.0` across the test packages. It will not be possible to test or run on older SDKs once we migrate to the next version of `analyzer`. Drop the `legacy_tests`. We will continue to have coverage for that behavior with internal tests. Add class modifiers to classes exposed through the public APIs of `test`, `test_core`, or `test_api`. Internal classes that are not exported through a public library have not been considered, and more modifiers may be useful for these classes in the future. Add class modifiers to the classes exposed from `checks`. Deprecate the export of `Result` and `Status` from `test_api/hooks_testing.dart`. These had been part of the API design before the `State` enum was added, but the export was mistakenly left in. Change the `Compiler` class into an `enum`. Make `Fake` a `mixin class` to avoid breaking existing usage.
Welcome! package:test is the standard testing library for Dart and Flutter. If you have questions about Dart testing, please see the docs for package:test. package:test_api
and package:test_core
are implementation details and generally not user-facing.
package:checks is a relatively new library for expressing test expectations. It's a more modern version of package:matcher
and features a literate API.
Package | Description | Version |
---|---|---|
checks | A framework for checking values against expectations and building custom expectations. | |
test | A full featured library for writing and running Dart tests across platforms. | |
test_api | ||
test_core |