Unverified Commit cd84ceaf authored by Alexander Markov's avatar Alexander Markov Committed by GitHub

Pass local engine in flutter_test_performance benchmark (#40193)

parent 925a52fa
...@@ -38,13 +38,10 @@ enum TestStep { ...@@ -38,13 +38,10 @@ enum TestStep {
Future<int> runTest({bool coverage = false}) async { Future<int> runTest({bool coverage = false}) async {
final Stopwatch clock = Stopwatch()..start(); final Stopwatch clock = Stopwatch()..start();
final List<String> arguments = <String>[ final List<String> arguments = flutterCommandArgs('test', <String>[
'test', if (coverage) '--coverage',
]; path.join('flutter_test', 'trivial_widget_test.dart'),
if (coverage) { ]);
arguments.add('--coverage');
}
arguments.add(path.join('flutter_test', 'trivial_widget_test.dart'));
final Process analysis = await startProcess( final Process analysis = await startProcess(
path.join(flutterDirectory.path, 'bin', 'flutter'), path.join(flutterDirectory.path, 'bin', 'flutter'),
arguments, arguments,
......
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