Also add `@doNotSubmit` to scaffolding.dart. (#2208)

* Also add doNotSubmit to scaffolding.dart.

* Versions and changelog

---------

Co-authored-by: Nate Bosch <nbosch@google.com>
diff --git a/pkgs/test/CHANGELOG.md b/pkgs/test/CHANGELOG.md
index fac20fa..8790492 100644
--- a/pkgs/test/CHANGELOG.md
+++ b/pkgs/test/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 1.25.4
+
+* Add `@doNotSubmit` to more declarations of the `solo` parameter.
+
 ## 1.25.3
 
 * Remove outdated StreamMatcher link from README table of contents.
diff --git a/pkgs/test/pubspec.yaml b/pkgs/test/pubspec.yaml
index 87dd451..4e2f5ba 100644
--- a/pkgs/test/pubspec.yaml
+++ b/pkgs/test/pubspec.yaml
@@ -1,5 +1,5 @@
 name: test
-version: 1.25.3
+version: 1.25.4
 description: >-
   A full featured library for writing and running Dart tests across platforms.
 repository: https://github.com/dart-lang/test/tree/master/pkgs/test
@@ -35,7 +35,7 @@
 
   # Use an exact version until the test_api and test_core package are stable.
   test_api: 0.7.1
-  test_core: 0.6.1
+  test_core: 0.6.2
 
   typed_data: ^1.3.0
   web_socket_channel: ^2.0.0
diff --git a/pkgs/test_core/CHANGELOG.md b/pkgs/test_core/CHANGELOG.md
index 98a5a88..b3d77a6 100644
--- a/pkgs/test_core/CHANGELOG.md
+++ b/pkgs/test_core/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 0.6.2
+
+* Add `@doNotSubmit` to more declarations of the `solo` parameter.
+
 ## 0.6.1
 
 * Handle missing package configs.
diff --git a/pkgs/test_core/lib/src/scaffolding.dart b/pkgs/test_core/lib/src/scaffolding.dart
index 35f3b2f..b72d9ea 100644
--- a/pkgs/test_core/lib/src/scaffolding.dart
+++ b/pkgs/test_core/lib/src/scaffolding.dart
@@ -4,7 +4,7 @@
 
 import 'dart:async';
 
-import 'package:meta/meta.dart' show isTest, isTestGroup;
+import 'package:meta/meta.dart' show doNotSubmit, isTest, isTestGroup;
 import 'package:path/path.dart' as p;
 import 'package:test_api/backend.dart';
 import 'package:test_api/scaffolding.dart' show Timeout, pumpEventQueue;
@@ -141,7 +141,8 @@
     Object? tags,
     Map<String, dynamic>? onPlatform,
     int? retry,
-    @Deprecated('Debug only') bool solo = false}) {
+    // TODO(https://github.com/dart-lang/test/issues/2205): Remove deprecated.
+    @Deprecated('Debug only') @doNotSubmit bool solo = false}) {
   _declarer.test(description.toString(), body,
       testOn: testOn,
       timeout: timeout,
@@ -219,7 +220,8 @@
     Object? tags,
     Map<String, dynamic>? onPlatform,
     int? retry,
-    @Deprecated('Debug only') bool solo = false}) {
+    // TODO(https://github.com/dart-lang/test/issues/2205): Remove deprecated.
+    @Deprecated('Debug only') @doNotSubmit bool solo = false}) {
   _declarer.group(description.toString(), body,
       testOn: testOn,
       timeout: timeout,
diff --git a/pkgs/test_core/pubspec.yaml b/pkgs/test_core/pubspec.yaml
index 13772e8..8a8a369 100644
--- a/pkgs/test_core/pubspec.yaml
+++ b/pkgs/test_core/pubspec.yaml
@@ -1,5 +1,5 @@
 name: test_core
-version: 0.6.1
+version: 0.6.2
 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