forked from firka/flutter
Rename shellPath to flutterTesterBinPath. (#161189)
Closes https://github.com/flutter/flutter/issues/160462. Maybe there are people who consider `flutter_tester` as the flutter "shell", but this is more explicit.
This commit is contained in:
@@ -56,7 +56,7 @@ typedef PlatformPluginRegistration = void Function(FlutterPlatform platform);
|
||||
/// main()`), you can set a VM Service port explicitly.
|
||||
FlutterPlatform installHook({
|
||||
TestWrapper testWrapper = const TestWrapper(),
|
||||
required String shellPath,
|
||||
required String flutterTesterBinPath,
|
||||
required DebuggingOptions debuggingOptions,
|
||||
required BuildInfo buildInfo,
|
||||
required FileSystem fileSystem,
|
||||
@@ -91,7 +91,7 @@ FlutterPlatform installHook({
|
||||
});
|
||||
};
|
||||
final FlutterPlatform platform = FlutterPlatform(
|
||||
shellPath: shellPath,
|
||||
flutterTesterBinPath: flutterTesterBinPath,
|
||||
debuggingOptions: debuggingOptions,
|
||||
watcher: watcher,
|
||||
machine: machine,
|
||||
@@ -298,7 +298,7 @@ typedef Finalizer = Future<void> Function();
|
||||
/// The flutter test platform used to integrate with package:test.
|
||||
class FlutterPlatform extends PlatformPlugin {
|
||||
FlutterPlatform({
|
||||
required this.shellPath,
|
||||
required this.flutterTesterBinPath,
|
||||
required this.debuggingOptions,
|
||||
required this.buildInfo,
|
||||
required this.logger,
|
||||
@@ -322,7 +322,7 @@ class FlutterPlatform extends PlatformPlugin {
|
||||
this.shutdownHooks,
|
||||
}) {
|
||||
_testGoldenComparator = TestGoldenComparator(
|
||||
flutterTesterBinPath: shellPath,
|
||||
flutterTesterBinPath: flutterTesterBinPath,
|
||||
compilerFactory:
|
||||
() =>
|
||||
compiler ??
|
||||
@@ -333,7 +333,7 @@ class FlutterPlatform extends PlatformPlugin {
|
||||
);
|
||||
}
|
||||
|
||||
final String shellPath;
|
||||
final String flutterTesterBinPath;
|
||||
final DebuggingOptions debuggingOptions;
|
||||
final TestWatcher? watcher;
|
||||
final bool? enableVmService;
|
||||
@@ -496,7 +496,7 @@ class FlutterPlatform extends PlatformPlugin {
|
||||
fileSystem: globals.fs,
|
||||
processManager: globals.processManager,
|
||||
logger: globals.logger,
|
||||
shellPath: shellPath,
|
||||
flutterTesterBinPath: flutterTesterBinPath,
|
||||
enableVmService: enableVmService!,
|
||||
machine: machine,
|
||||
debuggingOptions: debuggingOptions,
|
||||
|
||||
@@ -33,7 +33,7 @@ class FlutterTesterTestDevice extends TestDevice {
|
||||
required this.fileSystem,
|
||||
required this.processManager,
|
||||
required this.logger,
|
||||
required this.shellPath,
|
||||
required this.flutterTesterBinPath,
|
||||
required this.debuggingOptions,
|
||||
required this.enableVmService,
|
||||
required this.machine,
|
||||
@@ -54,7 +54,7 @@ class FlutterTesterTestDevice extends TestDevice {
|
||||
final FileSystem fileSystem;
|
||||
final ProcessManager processManager;
|
||||
final Logger logger;
|
||||
final String shellPath;
|
||||
final String flutterTesterBinPath;
|
||||
final DebuggingOptions debuggingOptions;
|
||||
final bool enableVmService;
|
||||
final bool? machine;
|
||||
@@ -89,7 +89,7 @@ class FlutterTesterTestDevice extends TestDevice {
|
||||
_server = await bind(host, /*port*/ 0);
|
||||
logger.printTrace('test $id: test harness socket server is running at port:${_server!.port}');
|
||||
final List<String> command = <String>[
|
||||
shellPath,
|
||||
flutterTesterBinPath,
|
||||
if (enableVmService) ...<String>[
|
||||
// Some systems drive the _FlutterPlatform class in an unusual way, where
|
||||
// only one test file is processed at a time, and the operating
|
||||
|
||||
@@ -218,7 +218,7 @@ class _FlutterTestRunnerImpl implements FlutterTestRunner {
|
||||
|
||||
final loader.FlutterPlatform platform = loader.installHook(
|
||||
testWrapper: testWrapper,
|
||||
shellPath: flutterTesterBinPath,
|
||||
flutterTesterBinPath: flutterTesterBinPath,
|
||||
debuggingOptions: debuggingOptions,
|
||||
watcher: watcher,
|
||||
enableVmService: enableVmService,
|
||||
|
||||
Reference in New Issue
Block a user