Skip to content

Conversation

jonahwilliams
Copy link
Contributor

Description

Allow providing overrides to a single test run and add more defaults to the overrides.

@jonahwilliams jonahwilliams requested a review from zanderso May 23, 2019 16:01
@goderbauer goderbauer added the tool Affects the "flutter" command-line tool. See also t: labels. label May 23, 2019
OutputPreferences: () => OutputPreferences(showColor: false),
OperatingSystemUtils: () => MockOperatingSystemUtils(),
Usage: () => MockUsage(),
TimeoutConfiguration: () => const TimeoutConfiguration(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this needed?

Copy link
Contributor Author

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(),
Copy link
Member

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?

Copy link
Contributor Author

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

@jonahwilliams jonahwilliams merged commit 7263c12 into flutter:master May 30, 2019
@jonahwilliams jonahwilliams deleted the more_context branch May 30, 2019 05:55
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants