commit | 5ffcb36fd6c82843f25ed96585a4b9e96022e7f9 | [log] [tgz] |
---|---|---|
author | Danny Tuppeny <danny@tuppeny.com> | Mon May 19 16:16:07 2025 +0100 |
committer | GitHub <noreply@github.com> | Mon May 19 08:16:07 2025 -0700 |
tree | ae20acd1c1d3118354f30d8aa7282bf580ac9219 | |
parent | b9c59ea01ab0c055d120fd6542af663704c16938 [diff] |
Fix an issue with failed assertions using setUpAll/tearDownAll (#2499) When groups are filtered using `filter()` and not `onPlatform`, we would clone the group and tests without also cloning `setUpAll`/`tearDownAll`, which led to an assertion failure when trying to set the parents. This change ensures we clone tests in `filter()` like we do in `forPlatform()`. Fixes https://github.com/dart-lang/test/issues/2498
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 | Issues | Version |
---|---|---|---|
checks | A framework for checking values against expectations and building custom expectations. | ||
fake_async | Fake asynchronous events such as timers and microtasks for deterministic testing. | ||
matcher | Support for specifying test expectations via an extensible Matcher class. Also includes a number of built-in Matcher implementations for common cases. | ||
test | A full featured library for writing and running Dart tests across platforms. | ||
test_api | The user facing API for structuring Dart tests and checking expectations. | ||
test_core | A basic library for writing tests and running them on the VM. | ||
test_descriptor | An API for defining and verifying files and directory structures. | ||
test_process | Test processes: starting; validating stdout and stderr; checking exit code. |