Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
1b16d237
Unverified
Commit
1b16d237
authored
May 06, 2022
by
Gary Qian
Committed by
GitHub
May 06, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add debug logging to deferred components test for deflaking (#103161)
parent
8094263c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
deferred_components_test.dart
...ools/test/integration.shard/deferred_components_test.dart
+9
-0
No files found.
packages/flutter_tools/test/integration.shard/deferred_components_test.dart
View file @
1b16d237
...
...
@@ -12,6 +12,7 @@ import 'test_data/deferred_components_project.dart';
import
'test_driver.dart'
;
import
'test_utils.dart'
;
void
main
(
)
{
late
Directory
tempDir
;
late
FlutterRunTestDriver
flutter
;
...
...
@@ -38,6 +39,8 @@ void main() {
'--target-platform=android-arm64'
,
],
workingDirectory:
tempDir
.
path
);
printOnFailure
(
'stdout:
\n
${result.stdout.toString()}
'
);
printOnFailure
(
'stderr:
\n
${result.stderr.toString()}
'
);
expect
(
result
.
exitCode
,
0
);
expect
(
result
.
stdout
.
toString
(),
contains
(
'app-release.aab'
));
expect
(
result
.
stdout
.
toString
(),
contains
(
'Deferred components prebuild validation passed.'
));
...
...
@@ -72,6 +75,8 @@ void main() {
'appbundle'
,
],
workingDirectory:
tempDir
.
path
);
printOnFailure
(
'stdout:
\n
${result.stdout.toString()}
'
);
printOnFailure
(
'stderr:
\n
${result.stderr.toString()}
'
);
expect
(
result
.
stdout
.
toString
(),
contains
(
'app-release.aab'
));
expect
(
result
.
stdout
.
toString
(),
contains
(
'Deferred components prebuild validation passed.'
));
expect
(
result
.
stdout
.
toString
(),
contains
(
'Deferred components gen_snapshot validation passed.'
));
...
...
@@ -116,6 +121,8 @@ void main() {
'--no-deferred-components'
,
],
workingDirectory:
tempDir
.
path
);
printOnFailure
(
'stdout:
\n
${result.stdout.toString()}
'
);
printOnFailure
(
'stderr:
\n
${result.stderr.toString()}
'
);
expect
(
result
.
stdout
.
toString
().
contains
(
'app-release.aab'
),
true
);
expect
(
result
.
stdout
.
toString
().
contains
(
'Deferred components prebuild validation passed.'
),
false
);
expect
(
result
.
stdout
.
toString
().
contains
(
'Deferred components gen_snapshot validation passed.'
),
false
);
...
...
@@ -162,6 +169,8 @@ void main() {
'--no-validate-deferred-components'
,
],
workingDirectory:
tempDir
.
path
);
printOnFailure
(
'stdout:
\n
${result.stdout.toString()}
'
);
printOnFailure
(
'stderr:
\n
${result.stderr.toString()}
'
);
expect
(
result
.
stdout
.
toString
().
contains
(
'app-release.aab'
),
true
);
expect
(
result
.
stdout
.
toString
().
contains
(
'Deferred components prebuild validation passed.'
),
false
);
expect
(
result
.
stdout
.
toString
().
contains
(
'Deferred components gen_snapshot validation passed.'
),
false
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment