update cache for flutter test/fast command (#51235)
This commit is contained in:
@@ -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) {
|
|||||||
}
|
}
|
||||||
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() {
|
|||||||
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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user