update cache for flutter test/fast command (#51235)
This commit is contained in:
parent
c4345d2a0a
commit
4df8fdb7df
@ -23,7 +23,7 @@ import '../test/runner.dart';
|
||||
import '../test/test_wrapper.dart';
|
||||
import '../test/watcher.dart';
|
||||
|
||||
class TestCommand extends FastFlutterCommand {
|
||||
class TestCommand extends FlutterCommand {
|
||||
TestCommand({
|
||||
bool verboseHelp = false,
|
||||
this.testWrapper = const TestWrapper(),
|
||||
|
@ -881,15 +881,3 @@ DevelopmentArtifact _artifactFromTargetPlatform(TargetPlatform targetPlatform) {
|
||||
}
|
||||
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(() {
|
||||
fs = MemoryFileSystem();
|
||||
fs.file('pubspec.yaml').createSync();
|
||||
fs.file('.packages').createSync();
|
||||
fs.directory('test').childFile('some_test.dart').createSync(recursive: true);
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user