-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Refactor tool tests #146217
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
Refactor tool tests #146217
Conversation
|
Holding this as a draft since it relies on the refactoring of |
goderbauer
left a comment
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.
LGTM
|
auto label is removed for flutter/flutter/146217, due to - The status or check suite Google testing has failed. Please fix the issues identified (or deflake) before re-applying this label. |
|
|
||
| import '../utils.dart'; | ||
|
|
||
| Future<void> toolTestsRunner() async { |
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.
Was there a particular reason the tool integration tests are not here?
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 can create a suite for all those tool tests to be included if that would make more sense
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'm not sure what that means. How much work does "creating a suite" entail? Although I suppose this was in its own function in test.dart. I suspect that was accidental, rather than intentional.
From a purely organizational perspective, I would weakly prefer that all the test functions that invoke test directories under //flutter/packages/flutter_tools/test be grouped together in the same library (dart's terminology for a file). But if that's a lot of work to implement I'm open to discussion.
Refactor tool tests suite in order to reduce testing logic in test.dart and allow for later implementing package:test onto the existing tool tests tests
Part of #145482
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.