Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pkgs/test/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## 1.26.3-WIP

## 1.26.2

* Graduate native assets from experiment to preview.
Expand Down
6 changes: 3 additions & 3 deletions pkgs/test/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: test
version: 1.26.2
version: 1.26.3-WIP
description: >-
A full featured library for writing and running Dart tests across platforms.
repository: https://github.com/dart-lang/test/tree/master/pkgs/test
Expand Down Expand Up @@ -36,8 +36,8 @@ dependencies:
stream_channel: ^2.1.0

# Use an exact version until the test_api and test_core package are stable.
test_api: 0.7.6
test_core: 0.6.11
test_api: 0.7.7-WIP
test_core: 0.6.12-WIP

typed_data: ^1.3.0
web_socket_channel: '>=2.0.0 <4.0.0'
Expand Down
2 changes: 2 additions & 0 deletions pkgs/test_api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## 0.7.7-WIP

## 0.7.6

* Fix an assertion failure when using `setUpAll` or `tearDownAll` and running
Expand Down
4 changes: 2 additions & 2 deletions pkgs/test_api/lib/src/backend/declarer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ class Declarer {
/// Runs [body] with this declarer as [Declarer.current].
///
/// Returns the return value of [body].
T declare<T>(T Function() body) =>
runZoned(body, zoneValues: {#test.declarer: this});
T declare<T>(T Function() body, {Map<Object?, Object?>? zoneValues}) =>
runZoned(body, zoneValues: {#test.declarer: this, ...?zoneValues});

/// Defines a test case with the given name and body.
void test(String name, dynamic Function() body,
Expand Down
3 changes: 2 additions & 1 deletion pkgs/test_api/lib/src/backend/remote_listener.dart
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ final class RemoteListener {
await beforeLoad(suiteChannelManager.connectOut);
}

await declarer.declare(main);
await declarer.declare(main,
zoneValues: {#test.platformChannel: controller.foreign});

var suite = Suite(
declarer.build(),
Expand Down
2 changes: 1 addition & 1 deletion pkgs/test_api/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: test_api
version: 0.7.6
version: 0.7.7-WIP
description: >-
The user facing API for structuring Dart tests and checking expectations.
repository: https://github.com/dart-lang/test/tree/master/pkgs/test_api
Expand Down
2 changes: 2 additions & 0 deletions pkgs/test_core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## 0.6.12-WIP

## 0.6.11

* Graduate native assets from experiment to preview.
Expand Down
4 changes: 2 additions & 2 deletions pkgs/test_core/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: test_core
version: 0.6.11
version: 0.6.12-WIP
description: A basic library for writing tests and running them on the VM.
repository: https://github.com/dart-lang/test/tree/master/pkgs/test_core
issue_tracker: https://github.com/dart-lang/test/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Atest
Expand Down Expand Up @@ -28,7 +28,7 @@ dependencies:
stack_trace: ^1.10.0
stream_channel: ^2.1.0
# Use an exact version until the test_api package is stable.
test_api: 0.7.6
test_api: 0.7.7-WIP
vm_service: '>=6.0.0 <16.0.0'
yaml: ^3.0.0

Expand Down
Loading