Unverified Commit 57e13405 authored by Jia Hao's avatar Jia Hao Committed by GitHub

[integration_test] Fix incorrect logging for the legacy reporter (#72699)

parent bd089974
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment