From 57e134058fd25ec4d7f1a46265c495a0cb89e67c Mon Sep 17 00:00:00 2001 From: Jia Hao Date: Tue, 22 Dec 2020 02:29:02 +0800 Subject: [PATCH] [integration_test] Fix incorrect logging for the legacy reporter (#72699) --- packages/integration_test/lib/integration_test.dart | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/integration_test/lib/integration_test.dart b/packages/integration_test/lib/integration_test.dart index 1315fe99e4..52dcce6605 100644 --- a/packages/integration_test/lib/integration_test.dart +++ b/packages/integration_test/lib/integration_test.dart @@ -126,13 +126,14 @@ class IntegrationTestWidgetsFlutterBinding extends LiveTestWidgetsFlutterBinding /// execute their tests instead. IntegrationTestWidgetsFlutterBinding() { if (!_isUsingLegacyReporting) { - // TODO(jiahaog): Point users to use the CLI https://github.com/flutter/flutter/issues/66264. - print('Using the legacy test result reporter, which will not catch all ' - 'errors thrown in declared tests. Consider wrapping tests with ' - 'https://api.flutter.dev/flutter/integration_test/run.html instead.'); return; } + // TODO(jiahaog): Point users to use the CLI https://github.com/flutter/flutter/issues/66264. + print('Using the legacy test result reporter, which will not catch all ' + 'errors thrown in declared tests. Consider wrapping tests with ' + 'https://api.flutter.dev/flutter/integration_test/run.html instead.'); + tearDownAll(() async { _updateTestResultState(results); await const _ReporterImpl().report(results.values.toList());