Use reporter extended consistently. (#145617)

Shard tests present output inconsistently using the compact or extended reporter depending on the defaults of flutter test and dart test. To make the output consistent and simplify debugging of failures this PR is enabling the extended reporter for all the tests based on unit/integration test packages.

Bug: https://github.com/flutter/flutter/issues/145616
This commit is contained in:
godofredoc 2024-03-28 15:39:13 -07:00 committed by GitHub
parent ea1268a78d
commit b36c16d272
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1753,6 +1753,7 @@ Future<void> runFlutterWebTest(
flutter, flutter,
<String>[ <String>[
'test', 'test',
'--reporter=expanded',
'-v', '-v',
'--platform=chrome', '--platform=chrome',
if (useWasm) '--wasm', if (useWasm) '--wasm',
@ -1811,6 +1812,7 @@ Future<void> _runDartTest(String workingDirectory, {
final List<String> args = <String>[ final List<String> args = <String>[
'run', 'run',
'test', 'test',
'--reporter=expanded',
'--file-reporter=json:${metricFile.path}', '--file-reporter=json:${metricFile.path}',
if (shuffleTests) '--test-randomize-ordering-seed=$shuffleSeed', if (shuffleTests) '--test-randomize-ordering-seed=$shuffleSeed',
'-j$cpus', '-j$cpus',
@ -1893,6 +1895,7 @@ Future<void> _runFlutterTest(String workingDirectory, {
final List<String> args = <String>[ final List<String> args = <String>[
'test', 'test',
'--reporter=expanded',
if (shuffleTests && !_isRandomizationOff) '--test-randomize-ordering-seed=$shuffleSeed', if (shuffleTests && !_isRandomizationOff) '--test-randomize-ordering-seed=$shuffleSeed',
if (fatalWarnings) '--fatal-warnings', if (fatalWarnings) '--fatal-warnings',
...options, ...options,