-
Notifications
You must be signed in to change notification settings - Fork 29.3k
Add local overrides to testbed and provide more defaults #33264
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
Conversation
OutputPreferences: () => OutputPreferences(showColor: false), | ||
OperatingSystemUtils: () => MockOperatingSystemUtils(), | ||
Usage: () => MockUsage(), | ||
TimeoutConfiguration: () => const TimeoutConfiguration(), |
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.
Why is this needed?
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.
Removed, it is not needed
final Map<Type, Generator> _testbedDefaults = <Type, Generator>{ | ||
FileSystem: () => MemoryFileSystem(), | ||
Logger: () => BufferLogger(), | ||
DeviceManager: () => MockDeviceManager(), |
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.
This list needs some comments describing how its membership is decided. What is the procedure for deciding that a mock should be in this defaults list?
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.
Added a standard criteria and removed those that did not fit. Also documented the reason for each current defaults inclusion
Description
Allow providing overrides to a single test run and add more defaults to the overrides.