Skip to content

Commit 31a2d64

Browse files
authored
Sort reporter options (#2475)
Previous versions of `package:args` alphabetically sorted the `allowedHelp` entries for help output. The latest release removes the sorting and breaks the change-detection tests for the help output. dart-lang/core#852 Manually sort the keys of the reporters map to match the alpha sort of the old output.
1 parent 9e349d0 commit 31a2d64

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

pkgs/test/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ dependencies:
3737

3838
# Use an exact version until the test_api and test_core package are stable.
3939
test_api: 0.7.4
40-
test_core: 0.6.8
40+
test_core: 0.6.9-wip
4141

4242
typed_data: ^1.3.0
4343
web_socket_channel: '>=2.0.0 <4.0.0'

pkgs/test_core/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## 0.6.9-wip
2+
13
## 0.6.8
24

35
* Fix hang when running multiple precompiled browser tests.

pkgs/test_core/lib/src/runner/configuration/reporters.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@ final UnmodifiableMapView<String, ReporterDetails> allReporters =
3131
UnmodifiableMapView<String, ReporterDetails>(_allReporters);
3232

3333
final _allReporters = <String, ReporterDetails>{
34-
'expanded': ReporterDetails(
35-
'A separate line for each update.',
36-
(config, engine, sink) => ExpandedReporter.watch(engine, sink,
34+
'compact': ReporterDetails(
35+
'A single line, updated continuously.',
36+
(config, engine, sink) => CompactReporter.watch(engine, sink,
3737
color: config.color,
3838
printPath: config.testSelections.length > 1 ||
3939
Directory(config.testSelections.keys.single).existsSync(),
4040
printPlatform: config.suiteDefaults.runtimes.length > 1 ||
4141
config.suiteDefaults.compilerSelections != null)),
42-
'compact': ReporterDetails(
43-
'A single line, updated continuously.',
44-
(config, engine, sink) => CompactReporter.watch(engine, sink,
42+
'expanded': ReporterDetails(
43+
'A separate line for each update.',
44+
(config, engine, sink) => ExpandedReporter.watch(engine, sink,
4545
color: config.color,
4646
printPath: config.testSelections.length > 1 ||
4747
Directory(config.testSelections.keys.single).existsSync(),

pkgs/test_core/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: test_core
2-
version: 0.6.8
2+
version: 0.6.9-wip
33
description: A basic library for writing tests and running them on the VM.
44
repository: https://github.com/dart-lang/test/tree/master/pkgs/test_core
55
issue_tracker: https://github.com/dart-lang/test/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Atest

0 commit comments

Comments
 (0)