From e86594de19e9b76fb5a3a74ea0d2f4cada812719 Mon Sep 17 00:00:00 2001 From: Renan <6718144+renancaraujo@users.noreply.github.com> Date: Fri, 15 Sep 2023 12:16:16 +0100 Subject: [PATCH] chore: update dependencies and sdk constraints (#782) * update dependencies and sdk constraints * d format * fix dartcli e2e test * update plugin e2e test --- .github/workflows/e2e.yaml | 2 +- .github/workflows/very_good_cli.yaml | 2 +- analysis_options.yaml | 2 +- .../create/dart_cli/dart_cli_test.dart | 5 +- .../create/docs_site/docs_site_test.dart | 2 +- .../flutter_plugin/flutter_plugin_test.dart | 2 +- lib/src/cli/cli.dart | 2 +- lib/src/cli/flutter_cli.dart | 8 +- pubspec.yaml | 16 +- test/fixtures/test_runner_fixtures.dart | 400 +++++++++--------- test/src/cli/flutter_cli_test.dart | 12 +- .../create/create_subcommand_test.dart | 2 +- 12 files changed, 227 insertions(+), 228 deletions(-) diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 0701e013..7eb11279 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -27,7 +27,7 @@ jobs: flutter-version: # The version of Flutter to use should use the minimum Dart SDK version supported by the package, # refer to https://docs.flutter.dev/development/tools/sdk/releases. - - "3.10.0" + - "3.13.0" test: # E2E tests for the test command - test/commands/test/async_main/async_main_test.dart diff --git a/.github/workflows/very_good_cli.yaml b/.github/workflows/very_good_cli.yaml index a524d80b..2d1f7705 100644 --- a/.github/workflows/very_good_cli.yaml +++ b/.github/workflows/very_good_cli.yaml @@ -25,7 +25,7 @@ jobs: - uses: subosito/flutter-action@v2.8.0 with: - flutter-version: 3.10.1 + flutter-version: 3.13.0 - name: Install Dependencies run: flutter pub get diff --git a/analysis_options.yaml b/analysis_options.yaml index de1213ff..8a15d68f 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -1,4 +1,4 @@ -include: package:very_good_analysis/analysis_options.5.0.0.yaml +include: package:very_good_analysis/analysis_options.5.1.0.yaml analyzer: exclude: - "**/version.dart" diff --git a/e2e/test/commands/create/dart_cli/dart_cli_test.dart b/e2e/test/commands/create/dart_cli/dart_cli_test.dart index f6b71acd..4b919929 100644 --- a/e2e/test/commands/create/dart_cli/dart_cli_test.dart +++ b/e2e/test/commands/create/dart_cli/dart_cli_test.dart @@ -17,15 +17,14 @@ void main() { [ 'create', 'dart_cli', - 'very_good_dart_cli', + 'my_cli', '-o', tempDirectory.path, ], ); expect(result, equals(ExitCode.success.code)); - final workingDirectory = - path.join(tempDirectory.path, 'very_good_dart_cli'); + final workingDirectory = path.join(tempDirectory.path, 'my_cli'); // add coverage to collect coverage on dart test await expectSuccessfulProcessResult( diff --git a/e2e/test/commands/create/docs_site/docs_site_test.dart b/e2e/test/commands/create/docs_site/docs_site_test.dart index ea6f3242..8924f490 100644 --- a/e2e/test/commands/create/docs_site/docs_site_test.dart +++ b/e2e/test/commands/create/docs_site/docs_site_test.dart @@ -19,7 +19,7 @@ void main() { 'docs_site', 'very_good_docs_site', '-o', - tempDirectory.path + tempDirectory.path, ], ); expect(result, equals(ExitCode.success.code)); diff --git a/e2e/test/commands/create/flutter_plugin/flutter_plugin_test.dart b/e2e/test/commands/create/flutter_plugin/flutter_plugin_test.dart index f37106fa..350fd72c 100644 --- a/e2e/test/commands/create/flutter_plugin/flutter_plugin_test.dart +++ b/e2e/test/commands/create/flutter_plugin/flutter_plugin_test.dart @@ -13,7 +13,7 @@ void main() { final tempDirectory = Directory.systemTemp.createTempSync(); addTearDown(() => tempDirectory.deleteSync(recursive: true)); - const pluginName = 'very_good'; + const pluginName = 'my_plugin'; final pluginDirectory = path.join(tempDirectory.path, pluginName); final result = await commandRunner.run( diff --git a/lib/src/cli/cli.dart b/lib/src/cli/cli.dart index 0a2f90d8..8401864f 100644 --- a/lib/src/cli/cli.dart +++ b/lib/src/cli/cli.dart @@ -134,7 +134,7 @@ class _Cmd { if (pr.exitCode != 0) { final values = { 'Standard out': pr.stdout.toString().trim(), - 'Standard error': pr.stderr.toString().trim() + 'Standard error': pr.stderr.toString().trim(), }..removeWhere((k, v) => v.isEmpty); var message = 'Unknown error'; diff --git a/lib/src/cli/flutter_cli.dart b/lib/src/cli/flutter_cli.dart index 2cece1af..c4afe269 100644 --- a/lib/src/cli/flutter_cli.dart +++ b/lib/src/cli/flutter_cli.dart @@ -212,9 +212,9 @@ class Flutter { ...?arguments, if (randomSeed != null) ...[ '--test-randomize-ordering-seed', - randomSeed + randomSeed, ], - if (optimizePerformance) p.join('test', _testOptimizerFileName) + if (optimizePerformance) p.join('test', _testOptimizerFileName), ], stdout: stdout ?? noop, stderr: stderr ?? noop, @@ -273,7 +273,7 @@ Future _verifyGitDependencies( final gitDependencies = [ ...dependencies.entries, ...devDependencies.entries, - ...dependencyOverrides.entries + ...dependencyOverrides.entries, ] .where((entry) => entry.value is GitDependency) .map((entry) => entry.value) @@ -414,7 +414,7 @@ Future _flutterTest({ final relativeTestPath = p.relative(testPath, from: cwd); failedTestErrorMessages[relativeTestPath] = [ ...failedTestErrorMessages[relativeTestPath] ?? [], - '$prefix $testName' + '$prefix $testName', ]; } diff --git a/pubspec.yaml b/pubspec.yaml index 969a7a80..b3e16bfd 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -8,11 +8,11 @@ documentation: https://cli.vgv.dev/docs/overview topics: [cli, codegen, test, template, boilerplate] environment: - sdk: ">=3.0.0 <4.0.0" + sdk: ">=3.1.0 <4.0.0" dependencies: args: ^2.1.0 - cli_completion: ">=0.2.0 <0.4.0" + cli_completion: ^0.3.0 collection: ^1.17.1 glob: ^2.0.2 lcov_parser: ^0.1.2 @@ -20,19 +20,19 @@ dependencies: mason_logger: ^0.2.2 meta: ^1.3.0 path: ^1.8.0 - pub_updater: ">=0.3.0 <0.4.0" + pub_updater: ^0.3.1 pubspec_parse: ^1.2.0 stack_trace: ^1.10.0 universal_io: ^2.0.4 very_good_test_runner: ^0.1.2 dev_dependencies: - build_runner: ^2.0.0 - build_verify: ^3.0.0 - build_version: ^2.0.0 - mocktail: ">=0.3.0 <2.0.0" + build_runner: ^2.4.6 + build_verify: ^3.1.0 + build_version: ^2.1.1 + mocktail: ^1.0.0 test: ^1.24.3 - very_good_analysis: ^5.0.0 + very_good_analysis: ^5.1.0 executables: very_good: diff --git a/test/fixtures/test_runner_fixtures.dart b/test/fixtures/test_runner_fixtures.dart index 7e8afd3b..7685094b 100644 --- a/test/fixtures/test_runner_fixtures.dart +++ b/test/fixtures/test_runner_fixtures.dart @@ -6,16 +6,16 @@ const passingJsonOutput = [ 'runnerVersion': '1.21.1', 'pid': 74133, 'type': 'start', - 'time': 0 + 'time': 0, }, { 'suite': { 'id': 0, 'platform': 'vm', - 'path': '/my_app/test/app/view/app_test.dart' + 'path': '/my_app/test/app/view/app_test.dart', }, 'type': 'suite', - 'time': 0 + 'time': 0, }, { 'test': { @@ -26,19 +26,19 @@ const passingJsonOutput = [ 'metadata': {'skip': false, 'skipReason': null}, 'line': null, 'column': null, - 'url': null + 'url': null, }, 'type': 'testStart', - 'time': 1 + 'time': 1, }, { 'suite': { 'id': 2, 'platform': 'vm', - 'path': '/my_app/test/counter/cubit/counter_cubit_test.dart' + 'path': '/my_app/test/counter/cubit/counter_cubit_test.dart', }, 'type': 'suite', - 'time': 9 + 'time': 9, }, { 'test': { @@ -49,19 +49,19 @@ const passingJsonOutput = [ 'metadata': {'skip': false, 'skipReason': null}, 'line': null, 'column': null, - 'url': null + 'url': null, }, 'type': 'testStart', - 'time': 9 + 'time': 9, }, { 'suite': { 'id': 4, 'platform': 'vm', - 'path': '/my_app/test/counter/view/counter_page_test.dart' + 'path': '/my_app/test/counter/view/counter_page_test.dart', }, 'type': 'suite', - 'time': 10 + 'time': 10, }, { 'test': { @@ -72,10 +72,10 @@ const passingJsonOutput = [ 'metadata': {'skip': false, 'skipReason': null}, 'line': null, 'column': null, - 'url': null + 'url': null, }, 'type': 'testStart', - 'time': 10 + 'time': 10, }, {'count': 3, 'time': 11, 'type': 'allSuites'}, { @@ -84,7 +84,7 @@ const passingJsonOutput = [ 'skipped': false, 'hidden': true, 'type': 'testDone', - 'time': 2496 + 'time': 2496, }, { 'group': { @@ -96,10 +96,10 @@ const passingJsonOutput = [ 'testCount': 1, 'line': null, 'column': null, - 'url': null + 'url': null, }, 'type': 'group', - 'time': 2501 + 'time': 2501, }, { 'group': { @@ -111,10 +111,10 @@ const passingJsonOutput = [ 'testCount': 1, 'line': 13, 'column': 3, - 'url': 'file:///my_app/test/app/view/app_test.dart' + 'url': 'file:///my_app/test/app/view/app_test.dart', }, 'type': 'group', - 'time': 2502 + 'time': 2502, }, { 'test': { @@ -128,10 +128,10 @@ const passingJsonOutput = [ 'url': 'package:flutter_test/src/widget_tester.dart', 'root_line': 14, 'root_column': 5, - 'root_url': 'file:///my_app/test/app/view/app_test.dart' + 'root_url': 'file:///my_app/test/app/view/app_test.dart', }, 'type': 'testStart', - 'time': 2502 + 'time': 2502, }, { 'testID': 3, @@ -139,7 +139,7 @@ const passingJsonOutput = [ 'skipped': false, 'hidden': true, 'type': 'testDone', - 'time': 2578 + 'time': 2578, }, { 'group': { @@ -151,10 +151,10 @@ const passingJsonOutput = [ 'testCount': 3, 'line': null, 'column': null, - 'url': null + 'url': null, }, 'type': 'group', - 'time': 2579 + 'time': 2579, }, { 'group': { @@ -166,10 +166,10 @@ const passingJsonOutput = [ 'testCount': 3, 'line': 14, 'column': 3, - 'url': 'file:///my_app/test/counter/cubit/counter_cubit_test.dart' + 'url': 'file:///my_app/test/counter/cubit/counter_cubit_test.dart', }, 'type': 'group', - 'time': 2579 + 'time': 2579, }, { 'test': { @@ -180,10 +180,10 @@ const passingJsonOutput = [ 'metadata': {'skip': false, 'skipReason': null}, 'line': 15, 'column': 5, - 'url': 'file:///my_app/test/counter/cubit/counter_cubit_test.dart' + 'url': 'file:///my_app/test/counter/cubit/counter_cubit_test.dart', }, 'type': 'testStart', - 'time': 2579 + 'time': 2579, }, { 'testID': 11, @@ -191,7 +191,7 @@ const passingJsonOutput = [ 'skipped': false, 'hidden': false, 'type': 'testDone', - 'time': 2614 + 'time': 2614, }, { 'test': { @@ -205,10 +205,10 @@ const passingJsonOutput = [ 'url': 'package:bloc_test/src/bloc_test.dart', 'root_line': 19, 'root_column': 5, - 'root_url': 'file:///my_app/test/counter/cubit/counter_cubit_test.dart' + 'root_url': 'file:///my_app/test/counter/cubit/counter_cubit_test.dart', }, 'type': 'testStart', - 'time': 2615 + 'time': 2615, }, { 'testID': 12, @@ -216,7 +216,7 @@ const passingJsonOutput = [ 'skipped': false, 'hidden': false, 'type': 'testDone', - 'time': 2633 + 'time': 2633, }, { 'test': { @@ -230,10 +230,10 @@ const passingJsonOutput = [ 'url': 'package:bloc_test/src/bloc_test.dart', 'root_line': 26, 'root_column': 5, - 'root_url': 'file:///my_app/test/counter/cubit/counter_cubit_test.dart' + 'root_url': 'file:///my_app/test/counter/cubit/counter_cubit_test.dart', }, 'type': 'testStart', - 'time': 2634 + 'time': 2634, }, { 'testID': 13, @@ -241,7 +241,7 @@ const passingJsonOutput = [ 'skipped': false, 'hidden': false, 'type': 'testDone', - 'time': 2638 + 'time': 2638, }, { 'testID': 5, @@ -249,7 +249,7 @@ const passingJsonOutput = [ 'skipped': false, 'hidden': true, 'type': 'testDone', - 'time': 2836 + 'time': 2836, }, { 'group': { @@ -261,10 +261,10 @@ const passingJsonOutput = [ 'testCount': 4, 'line': null, 'column': null, - 'url': null + 'url': null, }, 'type': 'group', - 'time': 2836 + 'time': 2836, }, { 'group': { @@ -276,10 +276,10 @@ const passingJsonOutput = [ 'testCount': 1, 'line': 21, 'column': 3, - 'url': 'file:///my_app/test/counter/view/counter_page_test.dart' + 'url': 'file:///my_app/test/counter/view/counter_page_test.dart', }, 'type': 'group', - 'time': 2836 + 'time': 2836, }, { 'test': { @@ -293,10 +293,10 @@ const passingJsonOutput = [ 'url': 'package:flutter_test/src/widget_tester.dart', 'root_line': 22, 'root_column': 5, - 'root_url': 'file:///my_app/test/counter/view/counter_page_test.dart' + 'root_url': 'file:///my_app/test/counter/view/counter_page_test.dart', }, 'type': 'testStart', - 'time': 2836 + 'time': 2836, }, { 'testID': 8, @@ -304,7 +304,7 @@ const passingJsonOutput = [ 'skipped': false, 'hidden': false, 'type': 'testDone', - 'time': 3433 + 'time': 3433, }, { 'testID': 16, @@ -312,7 +312,7 @@ const passingJsonOutput = [ 'skipped': false, 'hidden': false, 'type': 'testDone', - 'time': 3750 + 'time': 3750, }, { 'group': { @@ -324,10 +324,10 @@ const passingJsonOutput = [ 'testCount': 3, 'line': 28, 'column': 3, - 'url': 'file:///my_app/test/counter/view/counter_page_test.dart' + 'url': 'file:///my_app/test/counter/view/counter_page_test.dart', }, 'type': 'group', - 'time': 3750 + 'time': 3750, }, { 'test': { @@ -341,10 +341,10 @@ const passingJsonOutput = [ 'url': 'package:flutter_test/src/widget_tester.dart', 'root_line': 35, 'root_column': 5, - 'root_url': 'file:///my_app/test/counter/view/counter_page_test.dart' + 'root_url': 'file:///my_app/test/counter/view/counter_page_test.dart', }, 'type': 'testStart', - 'time': 3750 + 'time': 3750, }, { 'testID': 18, @@ -352,7 +352,7 @@ const passingJsonOutput = [ 'skipped': false, 'hidden': false, 'type': 'testDone', - 'time': 3825 + 'time': 3825, }, { 'test': { @@ -366,10 +366,10 @@ const passingJsonOutput = [ 'url': 'package:flutter_test/src/widget_tester.dart', 'root_line': 47, 'root_column': 5, - 'root_url': 'file:///my_app/test/counter/view/counter_page_test.dart' + 'root_url': 'file:///my_app/test/counter/view/counter_page_test.dart', }, 'type': 'testStart', - 'time': 3825 + 'time': 3825, }, { 'testID': 19, @@ -377,7 +377,7 @@ const passingJsonOutput = [ 'skipped': false, 'hidden': false, 'type': 'testDone', - 'time': 3955 + 'time': 3955, }, { 'test': { @@ -391,10 +391,10 @@ const passingJsonOutput = [ 'url': 'package:flutter_test/src/widget_tester.dart', 'root_line': 61, 'root_column': 5, - 'root_url': 'file:///my_app/test/counter/view/counter_page_test.dart' + 'root_url': 'file:///my_app/test/counter/view/counter_page_test.dart', }, 'type': 'testStart', - 'time': 3955 + 'time': 3955, }, { 'testID': 20, @@ -402,7 +402,7 @@ const passingJsonOutput = [ 'skipped': false, 'hidden': false, 'type': 'testDone', - 'time': 3997 + 'time': 3997, }, {'success': true, 'type': 'done', 'time': 4015}, ]; @@ -413,16 +413,16 @@ List> failingJsonOutput(String cwd) => [ 'runnerVersion': '1.21.1', 'pid': 70841, 'type': 'start', - 'time': 0 + 'time': 0, }, { 'suite': { 'id': 0, 'platform': 'vm', - 'path': '$cwd/test/app/view/app_test.dart' + 'path': '$cwd/test/app/view/app_test.dart', }, 'type': 'suite', - 'time': 0 + 'time': 0, }, { 'test': { @@ -433,19 +433,19 @@ List> failingJsonOutput(String cwd) => [ 'metadata': {'skip': false, 'skipReason': null}, 'line': null, 'column': null, - 'url': null + 'url': null, }, 'type': 'testStart', - 'time': 2 + 'time': 2, }, { 'suite': { 'id': 2, 'platform': 'vm', - 'path': '$cwd/test/counter/cubit/counter_cubit_test.dart' + 'path': '$cwd/test/counter/cubit/counter_cubit_test.dart', }, 'type': 'suite', - 'time': 8 + 'time': 8, }, { 'test': { @@ -456,19 +456,19 @@ List> failingJsonOutput(String cwd) => [ 'metadata': {'skip': false, 'skipReason': null}, 'line': null, 'column': null, - 'url': null + 'url': null, }, 'type': 'testStart', - 'time': 8 + 'time': 8, }, { 'suite': { 'id': 4, 'platform': 'vm', - 'path': '$cwd/test/counter/view/counter_page_test.dart' + 'path': '$cwd/test/counter/view/counter_page_test.dart', }, 'type': 'suite', - 'time': 10 + 'time': 10, }, { 'test': { @@ -479,10 +479,10 @@ List> failingJsonOutput(String cwd) => [ 'metadata': {'skip': false, 'skipReason': null}, 'line': null, 'column': null, - 'url': null + 'url': null, }, 'type': 'testStart', - 'time': 10 + 'time': 10, }, {'count': 3, 'time': 10, 'type': 'allSuites'}, { @@ -491,7 +491,7 @@ List> failingJsonOutput(String cwd) => [ 'skipped': false, 'hidden': true, 'type': 'testDone', - 'time': 10947 + 'time': 10947, }, { 'group': { @@ -503,10 +503,10 @@ List> failingJsonOutput(String cwd) => [ 'testCount': 1, 'line': null, 'column': null, - 'url': null + 'url': null, }, 'type': 'group', - 'time': 10953 + 'time': 10953, }, { 'group': { @@ -518,10 +518,10 @@ List> failingJsonOutput(String cwd) => [ 'testCount': 1, 'line': 13, 'column': 3, - 'url': 'file://$cwd/test/app/view/app_test.dart' + 'url': 'file://$cwd/test/app/view/app_test.dart', }, 'type': 'group', - 'time': 10954 + 'time': 10954, }, { 'test': { @@ -535,10 +535,10 @@ List> failingJsonOutput(String cwd) => [ 'url': 'package:flutter_test/src/widget_tester.dart', 'root_line': 14, 'root_column': 5, - 'root_url': 'file://$cwd/test/app/view/app_test.dart' + 'root_url': 'file://$cwd/test/app/view/app_test.dart', }, 'type': 'testStart', - 'time': 10954 + 'time': 10954, }, { 'testID': 3, @@ -546,7 +546,7 @@ List> failingJsonOutput(String cwd) => [ 'skipped': false, 'hidden': true, 'type': 'testDone', - 'time': 11237 + 'time': 11237, }, { 'group': { @@ -558,10 +558,10 @@ List> failingJsonOutput(String cwd) => [ 'testCount': 3, 'line': null, 'column': null, - 'url': null + 'url': null, }, 'type': 'group', - 'time': 11238 + 'time': 11238, }, { 'group': { @@ -573,10 +573,10 @@ List> failingJsonOutput(String cwd) => [ 'testCount': 3, 'line': 14, 'column': 3, - 'url': 'file://$cwd/test/counter/cubit/counter_cubit_test.dart' + 'url': 'file://$cwd/test/counter/cubit/counter_cubit_test.dart', }, 'type': 'group', - 'time': 11238 + 'time': 11238, }, { 'test': { @@ -587,10 +587,10 @@ List> failingJsonOutput(String cwd) => [ 'metadata': {'skip': false, 'skipReason': null}, 'line': 15, 'column': 5, - 'url': 'file://$cwd/test/counter/cubit/counter_cubit_test.dart' + 'url': 'file://$cwd/test/counter/cubit/counter_cubit_test.dart', }, 'type': 'testStart', - 'time': 11238 + 'time': 11238, }, { 'testID': 11, @@ -599,7 +599,7 @@ List> failingJsonOutput(String cwd) => [ 'package:test_api expect\npackage:flutter_test/src/widget_tester.dart 455:16 expect\ntest/counter/cubit/counter_cubit_test.dart 16:7 main..\n', 'isFailure': true, 'type': 'error', - 'time': 11305 + 'time': 11305, }, { 'testID': 11, @@ -607,7 +607,7 @@ List> failingJsonOutput(String cwd) => [ 'skipped': false, 'hidden': false, 'type': 'testDone', - 'time': 11306 + 'time': 11306, }, { 'test': { @@ -621,10 +621,10 @@ List> failingJsonOutput(String cwd) => [ 'url': 'package:bloc_test/src/bloc_test.dart', 'root_line': 19, 'root_column': 5, - 'root_url': 'file://$cwd/test/counter/cubit/counter_cubit_test.dart' + 'root_url': 'file://$cwd/test/counter/cubit/counter_cubit_test.dart', }, 'type': 'testStart', - 'time': 11306 + 'time': 11306, }, { 'testID': 12, @@ -632,7 +632,7 @@ List> failingJsonOutput(String cwd) => [ 'skipped': false, 'hidden': false, 'type': 'testDone', - 'time': 11321 + 'time': 11321, }, { 'test': { @@ -646,10 +646,10 @@ List> failingJsonOutput(String cwd) => [ 'url': 'package:bloc_test/src/bloc_test.dart', 'root_line': 26, 'root_column': 5, - 'root_url': 'file://$cwd/test/counter/cubit/counter_cubit_test.dart' + 'root_url': 'file://$cwd/test/counter/cubit/counter_cubit_test.dart', }, 'type': 'testStart', - 'time': 11322 + 'time': 11322, }, { 'testID': 13, @@ -657,7 +657,7 @@ List> failingJsonOutput(String cwd) => [ 'skipped': false, 'hidden': false, 'type': 'testDone', - 'time': 11326 + 'time': 11326, }, { 'testID': 5, @@ -665,7 +665,7 @@ List> failingJsonOutput(String cwd) => [ 'skipped': false, 'hidden': true, 'type': 'testDone', - 'time': 11543 + 'time': 11543, }, { 'group': { @@ -677,10 +677,10 @@ List> failingJsonOutput(String cwd) => [ 'testCount': 4, 'line': null, 'column': null, - 'url': null + 'url': null, }, 'type': 'group', - 'time': 11543 + 'time': 11543, }, { 'group': { @@ -692,10 +692,10 @@ List> failingJsonOutput(String cwd) => [ 'testCount': 1, 'line': 21, 'column': 3, - 'url': 'file://$cwd/test/counter/view/counter_page_test.dart' + 'url': 'file://$cwd/test/counter/view/counter_page_test.dart', }, 'type': 'group', - 'time': 11544 + 'time': 11544, }, { 'test': { @@ -709,10 +709,10 @@ List> failingJsonOutput(String cwd) => [ 'url': 'package:flutter_test/src/widget_tester.dart', 'root_line': 22, 'root_column': 5, - 'root_url': 'file://$cwd/test/counter/view/counter_page_test.dart' + 'root_url': 'file://$cwd/test/counter/view/counter_page_test.dart', }, 'type': 'testStart', - 'time': 11544 + 'time': 11544, }, { 'testID': 8, @@ -720,7 +720,7 @@ List> failingJsonOutput(String cwd) => [ 'skipped': false, 'hidden': false, 'type': 'testDone', - 'time': 11990 + 'time': 11990, }, { 'testID': 16, @@ -728,7 +728,7 @@ List> failingJsonOutput(String cwd) => [ 'skipped': false, 'hidden': false, 'type': 'testDone', - 'time': 12481 + 'time': 12481, }, { 'group': { @@ -740,10 +740,10 @@ List> failingJsonOutput(String cwd) => [ 'testCount': 3, 'line': 28, 'column': 3, - 'url': 'file://$cwd/test/counter/view/counter_page_test.dart' + 'url': 'file://$cwd/test/counter/view/counter_page_test.dart', }, 'type': 'group', - 'time': 12481 + 'time': 12481, }, { 'test': { @@ -757,10 +757,10 @@ List> failingJsonOutput(String cwd) => [ 'url': 'package:flutter_test/src/widget_tester.dart', 'root_line': 35, 'root_column': 5, - 'root_url': 'file://$cwd/test/counter/view/counter_page_test.dart' + 'root_url': 'file://$cwd/test/counter/view/counter_page_test.dart', }, 'type': 'testStart', - 'time': 12481 + 'time': 12481, }, { 'testID': 18, @@ -768,7 +768,7 @@ List> failingJsonOutput(String cwd) => [ 'skipped': false, 'hidden': false, 'type': 'testDone', - 'time': 12554 + 'time': 12554, }, { 'test': { @@ -782,10 +782,10 @@ List> failingJsonOutput(String cwd) => [ 'url': 'package:flutter_test/src/widget_tester.dart', 'root_line': 47, 'root_column': 5, - 'root_url': 'file://$cwd/test/counter/view/counter_page_test.dart' + 'root_url': 'file://$cwd/test/counter/view/counter_page_test.dart', }, 'type': 'testStart', - 'time': 12554 + 'time': 12554, }, { 'testID': 19, @@ -793,7 +793,7 @@ List> failingJsonOutput(String cwd) => [ 'skipped': false, 'hidden': false, 'type': 'testDone', - 'time': 12684 + 'time': 12684, }, { 'test': { @@ -807,10 +807,10 @@ List> failingJsonOutput(String cwd) => [ 'url': 'package:flutter_test/src/widget_tester.dart', 'root_line': 61, 'root_column': 5, - 'root_url': 'file://$cwd/test/counter/view/counter_page_test.dart' + 'root_url': 'file://$cwd/test/counter/view/counter_page_test.dart', }, 'type': 'testStart', - 'time': 12684 + 'time': 12684, }, { 'testID': 20, @@ -818,7 +818,7 @@ List> failingJsonOutput(String cwd) => [ 'skipped': false, 'hidden': false, 'type': 'testDone', - 'time': 12728 + 'time': 12728, }, {'success': false, 'type': 'done', 'time': 12745}, ]; @@ -829,16 +829,16 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'runnerVersion': '1.21.1', 'pid': 90255, 'type': 'start', - 'time': 0 + 'time': 0, }, { 'suite': { 'id': 0, 'platform': 'vm', - 'path': '$cwd/test/app/view/app_test.dart' + 'path': '$cwd/test/app/view/app_test.dart', }, 'type': 'suite', - 'time': 0 + 'time': 0, }, { 'test': { @@ -849,19 +849,19 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'metadata': {'skip': false, 'skipReason': null}, 'line': null, 'column': null, - 'url': null + 'url': null, }, 'type': 'testStart', - 'time': 1 + 'time': 1, }, { 'suite': { 'id': 2, 'platform': 'vm', - 'path': '$cwd/test/counter/cubit/counter_cubit_test.dart' + 'path': '$cwd/test/counter/cubit/counter_cubit_test.dart', }, 'type': 'suite', - 'time': 8 + 'time': 8, }, { 'test': { @@ -872,19 +872,19 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'metadata': {'skip': false, 'skipReason': null}, 'line': null, 'column': null, - 'url': null + 'url': null, }, 'type': 'testStart', - 'time': 8 + 'time': 8, }, { 'suite': { 'id': 4, 'platform': 'vm', - 'path': '$cwd/test/counter/view/long_name_test.dart' + 'path': '$cwd/test/counter/view/long_name_test.dart', }, 'type': 'suite', - 'time': 9 + 'time': 9, }, { 'test': { @@ -895,19 +895,19 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'metadata': {'skip': false, 'skipReason': null}, 'line': null, 'column': null, - 'url': null + 'url': null, }, 'type': 'testStart', - 'time': 9 + 'time': 9, }, { 'suite': { 'id': 6, 'platform': 'vm', - 'path': '$cwd/test/counter/view/counter_page_test.dart' + 'path': '$cwd/test/counter/view/counter_page_test.dart', }, 'type': 'suite', - 'time': 9 + 'time': 9, }, { 'test': { @@ -918,19 +918,19 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'metadata': {'skip': false, 'skipReason': null}, 'line': null, 'column': null, - 'url': null + 'url': null, }, 'type': 'testStart', - 'time': 9 + 'time': 9, }, { 'suite': { 'id': 8, 'platform': 'vm', - 'path': '$cwd/test/counter/view/other_test.dart' + 'path': '$cwd/test/counter/view/other_test.dart', }, 'type': 'suite', - 'time': 10 + 'time': 10, }, { 'test': { @@ -941,10 +941,10 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'metadata': {'skip': false, 'skipReason': null}, 'line': null, 'column': null, - 'url': null + 'url': null, }, 'type': 'testStart', - 'time': 11 + 'time': 11, }, {'count': 5, 'time': 11, 'type': 'allSuites'}, { @@ -953,7 +953,7 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'skipped': false, 'hidden': true, 'type': 'testDone', - 'time': 109 + 'time': 109, }, { 'group': { @@ -963,15 +963,15 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'name': '', 'metadata': { 'skip': true, - 'skipReason': 'currently failing (see issue 1234)' + 'skipReason': 'currently failing (see issue 1234)', }, 'testCount': 1, 'line': null, 'column': null, - 'url': null + 'url': null, }, 'type': 'group', - 'time': 113 + 'time': 113, }, { 'test': { @@ -981,21 +981,21 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'groupIDs': [10], 'metadata': { 'skip': true, - 'skipReason': 'currently failing (see issue 1234)' + 'skipReason': 'currently failing (see issue 1234)', }, 'line': null, 'column': null, - 'url': null + 'url': null, }, 'type': 'testStart', - 'time': 113 + 'time': 113, }, { 'testID': 11, 'messageType': 'skip', 'message': 'Skip: currently failing (see issue 1234)', 'type': 'print', - 'time': 114 + 'time': 114, }, { 'testID': 11, @@ -1003,7 +1003,7 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'skipped': true, 'hidden': false, 'type': 'testDone', - 'time': 114 + 'time': 114, }, { 'testID': 3, @@ -1011,7 +1011,7 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'skipped': false, 'hidden': true, 'type': 'testDone', - 'time': 2724 + 'time': 2724, }, { 'group': { @@ -1023,10 +1023,10 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'testCount': 3, 'line': null, 'column': null, - 'url': null + 'url': null, }, 'type': 'group', - 'time': 2724 + 'time': 2724, }, { 'group': { @@ -1038,10 +1038,10 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'testCount': 3, 'line': 14, 'column': 3, - 'url': 'file://$cwd/test/counter/cubit/counter_cubit_test.dart' + 'url': 'file://$cwd/test/counter/cubit/counter_cubit_test.dart', }, 'type': 'group', - 'time': 2725 + 'time': 2725, }, { 'test': { @@ -1052,10 +1052,10 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'metadata': {'skip': true, 'skipReason': null}, 'line': 15, 'column': 5, - 'url': 'file://$cwd/test/counter/cubit/counter_cubit_test.dart' + 'url': 'file://$cwd/test/counter/cubit/counter_cubit_test.dart', }, 'type': 'testStart', - 'time': 2725 + 'time': 2725, }, { 'testID': 14, @@ -1063,7 +1063,7 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'skipped': true, 'hidden': false, 'type': 'testDone', - 'time': 2725 + 'time': 2725, }, { 'test': { @@ -1077,10 +1077,10 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'url': 'package:bloc_test/src/bloc_test.dart', 'root_line': 23, 'root_column': 5, - 'root_url': 'file://$cwd/test/counter/cubit/counter_cubit_test.dart' + 'root_url': 'file://$cwd/test/counter/cubit/counter_cubit_test.dart', }, 'type': 'testStart', - 'time': 2726 + 'time': 2726, }, { 'testID': 5, @@ -1088,7 +1088,7 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'skipped': false, 'hidden': true, 'type': 'testDone', - 'time': 2757 + 'time': 2757, }, { 'group': { @@ -1100,10 +1100,10 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'testCount': 1, 'line': null, 'column': null, - 'url': null + 'url': null, }, 'type': 'group', - 'time': 2757 + 'time': 2757, }, { 'test': { @@ -1115,10 +1115,10 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'metadata': {'skip': false, 'skipReason': null}, 'line': 4, 'column': 3, - 'url': 'file://$cwd/test/counter/view/long_name_test.dart' + 'url': 'file://$cwd/test/counter/view/long_name_test.dart', }, 'type': 'testStart', - 'time': 2757 + 'time': 2757, }, { 'test': { @@ -1130,10 +1130,10 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'metadata': {'skip': false, 'skipReason': null}, 'line': 4, 'column': 3, - 'url': 'file://$cwd/test/counter/view/long_name_test.dart' + 'url': 'file://$cwd/test/counter/view/long_name_test.dart', }, 'type': 'testStart', - 'time': 2757 + 'time': 2757, }, { 'testID': 15, @@ -1141,7 +1141,7 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'skipped': false, 'hidden': false, 'type': 'testDone', - 'time': 2789 + 'time': 2789, }, { 'test': { @@ -1155,10 +1155,10 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'url': 'package:bloc_test/src/bloc_test.dart', 'root_line': 30, 'root_column': 5, - 'root_url': 'file://$cwd/test/counter/cubit/counter_cubit_test.dart' + 'root_url': 'file://$cwd/test/counter/cubit/counter_cubit_test.dart', }, 'type': 'testStart', - 'time': 2789 + 'time': 2789, }, { 'testID': 18, @@ -1166,7 +1166,7 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'skipped': false, 'hidden': false, 'type': 'testDone', - 'time': 2801 + 'time': 2801, }, { 'testID': 17, @@ -1174,7 +1174,7 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'skipped': false, 'hidden': false, 'type': 'testDone', - 'time': 2813 + 'time': 2813, }, { 'testID': 1, @@ -1182,7 +1182,7 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'skipped': false, 'hidden': true, 'type': 'testDone', - 'time': 2819 + 'time': 2819, }, { 'group': { @@ -1194,10 +1194,10 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'testCount': 1, 'line': null, 'column': null, - 'url': null + 'url': null, }, 'type': 'group', - 'time': 2820 + 'time': 2820, }, { 'group': { @@ -1209,10 +1209,10 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'testCount': 1, 'line': 13, 'column': 3, - 'url': 'file://$cwd/test/app/view/app_test.dart' + 'url': 'file://$cwd/test/app/view/app_test.dart', }, 'type': 'group', - 'time': 2820 + 'time': 2820, }, { 'test': { @@ -1226,10 +1226,10 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'url': 'package:flutter_test/src/widget_tester.dart', 'root_line': 14, 'root_column': 5, - 'root_url': 'file://$cwd/test/app/view/app_test.dart' + 'root_url': 'file://$cwd/test/app/view/app_test.dart', }, 'type': 'testStart', - 'time': 2820 + 'time': 2820, }, { 'testID': 7, @@ -1237,7 +1237,7 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'skipped': false, 'hidden': true, 'type': 'testDone', - 'time': 3113 + 'time': 3113, }, { 'group': { @@ -1249,10 +1249,10 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'testCount': 4, 'line': null, 'column': null, - 'url': null + 'url': null, }, 'type': 'group', - 'time': 3113 + 'time': 3113, }, { 'group': { @@ -1264,10 +1264,10 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'testCount': 1, 'line': 21, 'column': 3, - 'url': 'file://$cwd/test/counter/view/counter_page_test.dart' + 'url': 'file://$cwd/test/counter/view/counter_page_test.dart', }, 'type': 'group', - 'time': 3113 + 'time': 3113, }, { 'test': { @@ -1281,10 +1281,10 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'url': 'package:flutter_test/src/widget_tester.dart', 'root_line': 22, 'root_column': 5, - 'root_url': 'file://$cwd/test/counter/view/counter_page_test.dart' + 'root_url': 'file://$cwd/test/counter/view/counter_page_test.dart', }, 'type': 'testStart', - 'time': 3113 + 'time': 3113, }, { 'testID': 21, @@ -1292,7 +1292,7 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'message': '══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════\nThe following _Exception was thrown running a test:\nException: oops\n\nWhen the exception was thrown, this was the stack:\n#0 main.. (file://$cwd/test/app/view/app_test.dart:15:7)\n#1 main.. (file://$cwd/test/app/view/app_test.dart:14:40)\n#2 testWidgets.. (package:flutter_test/src/widget_tester.dart:170:29)\n\n\n(elided one frame from package:stack_trace)\n\nThe test description was:\n renders CounterPage\n════════════════════════════════════════════════════════════════════════════════════════════════════', 'type': 'print', - 'time': 3142 + 'time': 3142, }, { 'testID': 21, @@ -1301,7 +1301,7 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'stackTrace': '', 'isFailure': false, 'type': 'error', - 'time': 3147 + 'time': 3147, }, { 'testID': 21, @@ -1309,14 +1309,14 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'skipped': false, 'hidden': false, 'type': 'testDone', - 'time': 3151 + 'time': 3151, }, { 'testID': 24, 'messageType': 'print', 'message': 'hello', 'type': 'print', - 'time': 3341 + 'time': 3341, }, { 'testID': 24, @@ -1324,7 +1324,7 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'skipped': false, 'hidden': false, 'type': 'testDone', - 'time': 4019 + 'time': 4019, }, { 'group': { @@ -1336,10 +1336,10 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'testCount': 3, 'line': 29, 'column': 3, - 'url': 'file://$cwd/test/counter/view/counter_page_test.dart' + 'url': 'file://$cwd/test/counter/view/counter_page_test.dart', }, 'type': 'group', - 'time': 4019 + 'time': 4019, }, { 'test': { @@ -1353,10 +1353,10 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'url': 'package:flutter_test/src/widget_tester.dart', 'root_line': 36, 'root_column': 5, - 'root_url': 'file://$cwd/test/counter/view/counter_page_test.dart' + 'root_url': 'file://$cwd/test/counter/view/counter_page_test.dart', }, 'type': 'testStart', - 'time': 4020 + 'time': 4020, }, { 'testID': 26, @@ -1364,7 +1364,7 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'skipped': false, 'hidden': false, 'type': 'testDone', - 'time': 4092 + 'time': 4092, }, { 'test': { @@ -1378,10 +1378,10 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'url': 'package:flutter_test/src/widget_tester.dart', 'root_line': 51, 'root_column': 5, - 'root_url': 'file://$cwd/test/counter/view/counter_page_test.dart' + 'root_url': 'file://$cwd/test/counter/view/counter_page_test.dart', }, 'type': 'testStart', - 'time': 4092 + 'time': 4092, }, { 'testID': 27, @@ -1389,7 +1389,7 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'skipped': false, 'hidden': false, 'type': 'testDone', - 'time': 4212 + 'time': 4212, }, { 'test': { @@ -1403,10 +1403,10 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'url': 'package:flutter_test/src/widget_tester.dart', 'root_line': 65, 'root_column': 5, - 'root_url': 'file://$cwd/test/counter/view/counter_page_test.dart' + 'root_url': 'file://$cwd/test/counter/view/counter_page_test.dart', }, 'type': 'testStart', - 'time': 4213 + 'time': 4213, }, { 'testID': 28, @@ -1414,7 +1414,7 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'skipped': false, 'hidden': false, 'type': 'testDone', - 'time': 4248 + 'time': 4248, }, { 'test': { @@ -1426,10 +1426,10 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'metadata': {'skip': false, 'skipReason': null}, 'line': 4, 'column': 3, - 'url': 'file://$cwd/test/counter/view/multiline_test.dart' + 'url': 'file://$cwd/test/counter/view/multiline_test.dart', }, 'type': 'testStart', - 'time': 5440 + 'time': 5440, }, { 'testID': 29, @@ -1437,7 +1437,7 @@ List> skipExceptionMessageJsonOutput(String cwd) => [ 'skipped': false, 'hidden': false, 'type': 'testDone', - 'time': 5449 + 'time': 5449, }, {'success': false, 'type': 'done', 'time': 5466}, ]; @@ -1449,12 +1449,12 @@ List> compilationErrorJsonOutput(String cwd) { 'runnerVersion': '1.24.3', 'pid': 65730, 'type': 'start', - 'time': 0 + 'time': 0, }, { 'suite': {'id': 0, 'platform': 'vm', 'path': 'test/.test_optimizer.dart'}, 'type': 'suite', - 'time': 0 + 'time': 0, }, { 'test': { @@ -1465,10 +1465,10 @@ List> compilationErrorJsonOutput(String cwd) { 'metadata': {'skip': false, 'skipReason': null}, 'line': null, 'column': null, - 'url': null + 'url': null, }, 'type': 'testStart', - 'time': 0 + 'time': 0, }, {'count': 1, 'time': 4, 'type': 'allSuites'}, { @@ -1479,7 +1479,7 @@ List> compilationErrorJsonOutput(String cwd) { 'package:test_core/src/runner/vm/platform.dart 255:7 VMPlatform._compileToKernel\n===== asynchronous gap ===========================\npackage:test_core/src/runner/vm/platform.dart 232:15 VMPlatform._spawnIsolate\n===== asynchronous gap ===========================\npackage:test_core/src/runner/vm/platform.dart 76:19 VMPlatform.load\n===== asynchronous gap ===========================\npackage:test_core/src/runner/loader.dart 232:27 Loader.loadFile.\n===== asynchronous gap ===========================\npackage:test_core/src/runner/load_suite.dart 98:19 new LoadSuite..\n', 'isFailure': false, 'type': 'error', - 'time': 532 + 'time': 532, }, { 'testID': 1, @@ -1487,7 +1487,7 @@ List> compilationErrorJsonOutput(String cwd) { 'skipped': false, 'hidden': false, 'type': 'testDone', - 'time': 535 + 'time': 535, }, {'success': false, 'type': 'done', 'time': 536}, ]; diff --git a/test/src/cli/flutter_cli_test.dart b/test/src/cli/flutter_cli_test.dart index 1822e65e..6047ac7d 100644 --- a/test/src/cli/flutter_cli_test.dart +++ b/test/src/cli/flutter_cli_test.dart @@ -471,7 +471,7 @@ void main() { '\x1B[2K\r00:03 +6: CounterView renders current count', '''\x1B[2K\r00:03 +7: CounterView calls increment when increment button is tapped''', '''\x1B[2K\r00:03 +8: CounterView calls decrement when decrement button is tapped''', - '\x1B[2K\r00:04 +8: All tests passed!\n' + '\x1B[2K\r00:04 +8: All tests passed!\n', ]), ); expect(stderrLogs, isEmpty); @@ -513,7 +513,7 @@ void main() { '''\x1B[2K\r\x1B[90m00:03\x1B[0m \x1B[92m+6\x1B[0m: CounterView renders current count''', '''\x1B[2K\r\x1B[90m00:03\x1B[0m \x1B[92m+7\x1B[0m: ...rView calls increment when increment button is tapped''', '''\x1B[2K\r\x1B[90m00:03\x1B[0m \x1B[92m+8\x1B[0m: ...rView calls decrement when decrement button is tapped''', - '''\x1B[2K\r\x1B[90m\x1B[90m00:04\x1B[0m\x1B[0m \x1B[92m+8\x1B[0m: \x1B[92mAll tests passed!\x1B[0m\n''' + '''\x1B[2K\r\x1B[90m\x1B[90m00:04\x1B[0m\x1B[0m \x1B[92m+8\x1B[0m: \x1B[92mAll tests passed!\x1B[0m\n''', ]), ); expect(stderrLogs, isEmpty); @@ -615,7 +615,7 @@ void main() { '''\x1B[2K\r00:04 +6 -1 ~2: CounterView calls increment when increment button is tapped''', '''\x1B[2K\r00:04 +7 -1 ~2: CounterView calls decrement when decrement button is tapped''', '''\x1B[2K\r00:05 +8 -1 ~2: ...tiline test name that should be well processed by very_good test''', - '\x1B[2K\r00:05 +8 -1 ~2: Some tests failed.\n' + '\x1B[2K\r00:05 +8 -1 ~2: Some tests failed.\n', ]), ); expect( @@ -770,7 +770,7 @@ void main() { stdoutLogs, containsAllInOrder([ '\x1B[2K\r00:00 -1: loading test/.test_optimizer.dart', - '\x1B[2K\r00:00 -1: Some tests failed.\n' + '\x1B[2K\r00:00 -1: Some tests failed.\n', ]), ); expect( @@ -1193,11 +1193,11 @@ void main() { addTearDown(() => tempDirectory.deleteSync(recursive: true)); final originalVars = { - 'package-root': tempDirectory.path + 'package-root': tempDirectory.path, }; final updatedVars = { 'package-root': tempDirectory.path, - 'foo': 'bar' + 'foo': 'bar', }; File(p.join(tempDirectory.path, 'pubspec.yaml')).createSync(); Directory(p.join(tempDirectory.path, 'test')).createSync(); diff --git a/test/src/commands/create/create_subcommand_test.dart b/test/src/commands/create/create_subcommand_test.dart index e30a820d..de0d3d07 100644 --- a/test/src/commands/create/create_subcommand_test.dart +++ b/test/src/commands/create/create_subcommand_test.dart @@ -243,7 +243,7 @@ Run "runner help" to see global options.'''; '--description', 'test_desc', '--output-directory', - 'test_dir' + 'test_dir', ]); expect(result, equals(ExitCode.success.code));