Unverified Commit 4df8fdb7 authored by Dan Field's avatar Dan Field Committed by GitHub

update cache for flutter test/fast command (#51235)

parent c4345d2a
...@@ -23,7 +23,7 @@ import '../test/runner.dart'; ...@@ -23,7 +23,7 @@ import '../test/runner.dart';
import '../test/test_wrapper.dart'; import '../test/test_wrapper.dart';
import '../test/watcher.dart'; import '../test/watcher.dart';
class TestCommand extends FastFlutterCommand { class TestCommand extends FlutterCommand {
TestCommand({ TestCommand({
bool verboseHelp = false, bool verboseHelp = false,
this.testWrapper = const TestWrapper(), this.testWrapper = const TestWrapper(),
......
...@@ -881,15 +881,3 @@ DevelopmentArtifact _artifactFromTargetPlatform(TargetPlatform targetPlatform) { ...@@ -881,15 +881,3 @@ DevelopmentArtifact _artifactFromTargetPlatform(TargetPlatform targetPlatform) {
} }
return null; return null;
} }
/// A command which runs less analytics and checks to speed up startup time.
abstract class FastFlutterCommand extends FlutterCommand {
@override
Future<void> run() {
return context.run<void>(
name: 'command',
overrides: <Type, Generator>{FlutterCommand: () => this},
body: runCommand,
);
}
}
...@@ -27,6 +27,7 @@ void main() { ...@@ -27,6 +27,7 @@ void main() {
setUp(() { setUp(() {
fs = MemoryFileSystem(); fs = MemoryFileSystem();
fs.file('pubspec.yaml').createSync(); fs.file('pubspec.yaml').createSync();
fs.file('.packages').createSync();
fs.directory('test').childFile('some_test.dart').createSync(recursive: true); fs.directory('test').childFile('some_test.dart').createSync(recursive: true);
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment