diff --git a/benchmark/custom_emitter_benchmark.dart b/benchmark/custom_emitter_benchmark.dart index 25ac6d4..b0ee725 100644 --- a/benchmark/custom_emitter_benchmark.dart +++ b/benchmark/custom_emitter_benchmark.dart @@ -9,7 +9,6 @@ class CustomEmitter extends ColorPrintEmitter { } void main(List args) { - group('List:', () { final originalList = [for (var i = 0; i < 1000; ++i) i]; @@ -27,7 +26,5 @@ void main(List args) { benchmark('construct', () { var list = [for (var i = 0; i < 1000; ++i) i]; }, report: reportMean); - - }); } diff --git a/lib/src/command/export_command.dart b/lib/src/command/export_command.dart index 215ed24..d6b264c 100644 --- a/lib/src/command/export_command.dart +++ b/lib/src/command/export_command.dart @@ -79,7 +79,7 @@ class ExportCommand extends ReportCommand { final progressIndicator = progressIndicatorSubscription(); final results = await Future.wait(fResults); - + for (final result in results) { print('\$ '.style(ColorProfile.dim) + result.command()); if (isVerbose) { diff --git a/test/runner_test.dart b/test/runner_test.dart index 3cb5046..f909c8c 100644 --- a/test/runner_test.dart +++ b/test/runner_test.dart @@ -18,10 +18,9 @@ void main() { 'Usage: dart run benchmark_runner [arguments] \n' '\n' 'Global options:\n' - '-h, --help Print this usage information.\n' - '-v, --verbose Enable to show more info and error messages.\n' - '-c, --[no-]color Enables colorized reporting.\n' - ' (defaults to on)\n' + '-h, --help Print this usage information.\n' + '-v, --verbose Enable to show more info and error messages.\n' + '-m, --isMonochrome Disables colorized reporting.\n' '\n' 'Available commands:\n' ' export Exports benchmark scores. A custom file extension and directory may be specified.\n' @@ -46,13 +45,13 @@ void main() { final usage = await process.stdout.rest.join('\n'); expect( - usage,equals( - 'Runs benchmarks and prints a score report to stdout.\n' - '\n' - 'Usage: benchmark_runner report [arguments] \n' - '-h, --help Print this usage information.\n' - '\n' - 'Run "benchmark_runner help" to see global options.')); + usage, + equals('Runs benchmarks and prints a score report to stdout.\n' + '\n' + 'Usage: benchmark_runner report [arguments] \n' + '-h, --help Print this usage information.\n' + '\n' + 'Run "benchmark_runner help" to see global options.')); // Assert that the process exits with code 0. await process.shouldExit(0); @@ -90,7 +89,7 @@ void main() { usage, 'Exports benchmark scores. A custom file extension and directory may be specified.\n' '\n' - 'Usage: benchmark_runner export [arguments]\n' + 'Usage: benchmark_runner export [arguments] \n' '-h, --help Print this usage information.\n' '-e, --extension Set file extension of exported files.\n' ' (defaults to "txt")\n'