Restore compatibility with the Flutter tool (#1592)
Fixes #1591
diff --git a/pkgs/test/CHANGELOG.md b/pkgs/test/CHANGELOG.md
index 3bdc457..11390d5 100644
--- a/pkgs/test/CHANGELOG.md
+++ b/pkgs/test/CHANGELOG.md
@@ -1,4 +1,7 @@
-## 1.18.1-dev
+## 1.18.1
+
+* Add defaulting for older test backends that don't pass a configuration for
+ the `allow_duplicate_test_names` parameter to the remote listener.
## 1.18.0
diff --git a/pkgs/test/pubspec.yaml b/pkgs/test/pubspec.yaml
index 55f8619..373f2a5 100644
--- a/pkgs/test/pubspec.yaml
+++ b/pkgs/test/pubspec.yaml
@@ -1,5 +1,5 @@
name: test
-version: 1.18.1-dev
+version: 1.18.1
description: >-
A full featured library for writing and running Dart tests across platforms.
repository: https://github.com/dart-lang/test/blob/master/pkgs/test
@@ -32,7 +32,7 @@
webkit_inspection_protocol: ^1.0.0
yaml: ^3.0.0
# Use an exact version until the test_api and test_core package are stable.
- test_api: 0.4.4
+ test_api: 0.4.5
test_core: 0.4.4
dev_dependencies:
diff --git a/pkgs/test_api/CHANGELOG.md b/pkgs/test_api/CHANGELOG.md
index edeae81..e07176c 100644
--- a/pkgs/test_api/CHANGELOG.md
+++ b/pkgs/test_api/CHANGELOG.md
@@ -1,4 +1,7 @@
-## 0.4.5-dev
+## 0.4.5
+
+* Add defaulting for older test backends that don't pass a configuration for
+ the `allow_duplicate_test_names` parameter to the remote listener.
## 0.4.4
diff --git a/pkgs/test_api/lib/src/backend/remote_listener.dart b/pkgs/test_api/lib/src/backend/remote_listener.dart
index 222990d..20b00c8 100644
--- a/pkgs/test_api/lib/src/backend/remote_listener.dart
+++ b/pkgs/test_api/lib/src/backend/remote_listener.dart
@@ -101,13 +101,14 @@
var metadata = Metadata.deserialize(message['metadata']);
verboseChain = metadata.verboseTrace;
var declarer = Declarer(
- metadata: metadata,
- platformVariables:
- Set.from(message['platformVariables'] as Iterable),
- collectTraces: message['collectTraces'] as bool,
- noRetry: message['noRetry'] as bool,
- allowDuplicateTestNames:
- message['allowDuplicateTestNames'] as bool);
+ metadata: metadata,
+ platformVariables: Set.from(message['platformVariables'] as Iterable),
+ collectTraces: message['collectTraces'] as bool,
+ noRetry: message['noRetry'] as bool,
+ // TODO: Change to non-nullable https://github.com/dart-lang/test/issues/1591
+ allowDuplicateTestNames:
+ message['allowDuplicateTestNames'] as bool? ?? true,
+ );
StackTraceFormatter.current!.configure(
except: _deserializeSet(message['foldTraceExcept'] as List),
only: _deserializeSet(message['foldTraceOnly'] as List));
diff --git a/pkgs/test_api/pubspec.yaml b/pkgs/test_api/pubspec.yaml
index 669b398..bc71d9d 100644
--- a/pkgs/test_api/pubspec.yaml
+++ b/pkgs/test_api/pubspec.yaml
@@ -1,5 +1,5 @@
name: test_api
-version: 0.4.5-dev
+version: 0.4.5
description: A library for writing Dart tests.
homepage: https://github.com/dart-lang/test/blob/master/pkgs/test_api
diff --git a/pkgs/test_core/CHANGELOG.md b/pkgs/test_core/CHANGELOG.md
index 9a7e8ee..73f873e 100644
--- a/pkgs/test_core/CHANGELOG.md
+++ b/pkgs/test_core/CHANGELOG.md
@@ -1,4 +1,6 @@
-## 0.4.4-dev
+## 0.4.4
+
+* Support the latest `test_api`.
## 0.4.3
diff --git a/pkgs/test_core/pubspec.yaml b/pkgs/test_core/pubspec.yaml
index 01247aa..b545763 100644
--- a/pkgs/test_core/pubspec.yaml
+++ b/pkgs/test_core/pubspec.yaml
@@ -1,5 +1,5 @@
name: test_core
-version: 0.4.4-dev
+version: 0.4.4
description: A basic library for writing tests and running them on the VM.
homepage: https://github.com/dart-lang/test/blob/master/pkgs/test_core
@@ -30,7 +30,7 @@
# matcher is tightly constrained by test_api
matcher: any
# Use an exact version until the test_api package is stable.
- test_api: 0.4.4
+ test_api: 0.4.5
dev_dependencies:
lints: ^1.0.0