Unverified Commit 38cac910 authored by Elias Yishak's avatar Elias Yishak Committed by GitHub

Add `--verbose` flags for flakey tests (#126162)

Related to:
- https://github.com/flutter/flutter/issues/125512

Adding verbose flags to get printed out on error to help debug the cause of the flakey test
parent c6f61ef3
......@@ -25,6 +25,7 @@ void main() {
flutterBin,
'build',
'apk',
'--verbose',
'--analyze-size',
'--target-platform=android-arm64',
], workingDirectory: workingDirectory);
......@@ -61,6 +62,7 @@ void main() {
flutterBin,
'build',
'ios',
'--verbose',
'--analyze-size',
'--code-size-directory=${codeSizeDir.path}',
'--no-codesign',
......@@ -99,6 +101,7 @@ void main() {
final ProcessResult configResult = await processManager.run(<String>[
flutterBin,
'config',
'--verbose',
'--enable-macos-desktop',
], workingDirectory: workingDirectory);
......@@ -144,6 +147,7 @@ void main() {
flutterBin,
'build',
'apk',
'--verbose',
'--analyze-size',
'--target-platform=android-arm64',
'--debug',
......@@ -159,14 +163,24 @@ void main() {
testWithoutContext('--analyze-size is not supported in combination with --split-debug-info', () async {
final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter');
final ProcessResult result = await processManager.run(<String>[
final List<String> command = <String>[
flutterBin,
'build',
'apk',
'--verbose',
'--analyze-size',
'--target-platform=android-arm64',
'--split-debug-info=infos',
], workingDirectory: fileSystem.path.join(getFlutterRoot(), 'examples', 'hello_world'));
];
final String workingDirectory =
fileSystem.path.join(getFlutterRoot(), 'examples', 'hello_world');
final ProcessResult result =
await processManager.run(command, workingDirectory: workingDirectory);
printOnFailure('workingDirectory: $workingDirectory');
printOnFailure('command:\n${command.join(" ")}');
printOnFailure('stdout:\n${result.stdout}');
printOnFailure('stderr:\n${result.stderr}');
expect(result.stderr.toString(), contains('"--analyze-size" cannot be combined with "--split-debug-info"'));
......@@ -181,6 +195,7 @@ void main() {
flutterBin,
'build',
'apk',
'--verbose',
'--analyze-size',
'--code-size-directory=${tempDir.path}',
'--target-platform=android-arm64',
......
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