-
Notifications
You must be signed in to change notification settings - Fork 346
Inspector integration tests are resilient to Flutter framework changes #9321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
ecdd3fa
Update inspector V2 integration test to use custom widget library
elliette 1e6c033
Update legacy inspector integration tests
elliette e5687cd
formatting
elliette 8812687
Dart fix:
elliette ef0cfca
Update goldens
elliette 348a302
Fix legacy test
elliette 0b068e6
Missing blank line end of file
elliette File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2b6b9d12589875842e64f4b78fd0f11337755aaa | ||
c2ea27002b9c4ab1aff1db6eb1960e4299aca369 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder what you guys were hoping to test with these goldens and if it can be achieved with widget tests instead?
Taking a look at a golden image here (https://github.com/flutter/devtools/blob/master/packages/devtools_app/test/test_infra/goldens/integration_inspector_select_center_details_tree.png) it looks pretty UI-light, which is generally better for golden testing, but still I usually avoid golden testing if possible due to unintended breakages like this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the golden tests are mostly to make sure that we don't accidentally introduce some UI change that we wouldn't have thought to test in our widget tests. Since this specific view will be going away, I'm not too concerned about not having comprehensive test coverage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the V2 view, I think the fact that we have golden tests for the panel (just without implementation widgets enabled) should catch the vast majority of UI regressions.