Skip to content

Commit 0fc5653

Browse files
committed
Updated test.
1 parent 172cbca commit 0fc5653

File tree

3 files changed

+12
-16
lines changed

3 files changed

+12
-16
lines changed

benchmark/custom_emitter_benchmark.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ class CustomEmitter extends ColorPrintEmitter {
99
}
1010

1111
void main(List<String> args) {
12-
1312
group('List:', () {
1413
final originalList = <int>[for (var i = 0; i < 1000; ++i) i];
1514

@@ -27,7 +26,5 @@ void main(List<String> args) {
2726
benchmark('construct', () {
2827
var list = <int>[for (var i = 0; i < 1000; ++i) i];
2928
}, report: reportMean);
30-
31-
3229
});
3330
}

lib/src/command/export_command.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class ExportCommand extends ReportCommand {
7979
final progressIndicator = progressIndicatorSubscription();
8080

8181
final results = await Future.wait(fResults);
82-
82+
8383
for (final result in results) {
8484
print('\$ '.style(ColorProfile.dim) + result.command());
8585
if (isVerbose) {

test/runner_test.dart

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@ void main() {
1818
'Usage: dart run benchmark_runner <command> [arguments] <path to directory|file>\n'
1919
'\n'
2020
'Global options:\n'
21-
'-h, --help Print this usage information.\n'
22-
'-v, --verbose Enable to show more info and error messages.\n'
23-
'-c, --[no-]color Enables colorized reporting.\n'
24-
' (defaults to on)\n'
21+
'-h, --help Print this usage information.\n'
22+
'-v, --verbose Enable to show more info and error messages.\n'
23+
'-m, --isMonochrome Disables colorized reporting.\n'
2524
'\n'
2625
'Available commands:\n'
2726
' export Exports benchmark scores. A custom file extension and directory may be specified.\n'
@@ -46,13 +45,13 @@ void main() {
4645
final usage = await process.stdout.rest.join('\n');
4746

4847
expect(
49-
usage,equals(
50-
'Runs benchmarks and prints a score report to stdout.\n'
51-
'\n'
52-
'Usage: benchmark_runner report [arguments] <path to directory|file>\n'
53-
'-h, --help Print this usage information.\n'
54-
'\n'
55-
'Run "benchmark_runner help" to see global options.'));
48+
usage,
49+
equals('Runs benchmarks and prints a score report to stdout.\n'
50+
'\n'
51+
'Usage: benchmark_runner report [arguments] <path to directory|file>\n'
52+
'-h, --help Print this usage information.\n'
53+
'\n'
54+
'Run "benchmark_runner help" to see global options.'));
5655

5756
// Assert that the process exits with code 0.
5857
await process.shouldExit(0);
@@ -90,7 +89,7 @@ void main() {
9089
usage,
9190
'Exports benchmark scores. A custom file extension and directory may be specified.\n'
9291
'\n'
93-
'Usage: benchmark_runner export [arguments]\n'
92+
'Usage: benchmark_runner export [arguments] <path to directory|file>\n'
9493
'-h, --help Print this usage information.\n'
9594
'-e, --extension Set file extension of exported files.\n'
9695
' (defaults to "txt")\n'

0 commit comments

Comments
 (0)