mirror of
https://github.com/flutter/flutter
synced 2024-10-01 05:54:08 +00:00
Fix route integration test on ios (#99781)
This commit is contained in:
parent
890b85f915
commit
169a4a0098
4
.ci.yaml
4
.ci.yaml
|
@ -3362,7 +3362,7 @@ targets:
|
|||
task_name: external_ui_integration_test_ios
|
||||
scheduler: luci
|
||||
|
||||
- name: Mac_ios routing_test
|
||||
- name: Mac_ios route_test_ios
|
||||
bringup: true
|
||||
recipe: devicelab/devicelab_drone
|
||||
presubmit: false
|
||||
|
@ -3370,7 +3370,7 @@ targets:
|
|||
properties:
|
||||
tags: >
|
||||
["devicelab","ios","mac"]
|
||||
task_name: routing_test
|
||||
task_name: route_test_ios
|
||||
scheduler: luci
|
||||
|
||||
- name: Mac_ios flavors_test_ios
|
||||
|
|
|
@ -63,6 +63,7 @@
|
|||
/dev/devicelab/bin/tasks/platform_channels_benchmarks.dart @gaaclarke @flutter/engine
|
||||
/dev/devicelab/bin/tasks/platform_views_scroll_perf__timeline_summary.dart @zanderso @flutter/engine
|
||||
/dev/devicelab/bin/tasks/plugin_dependencies_test.dart @jmagman @flutter/tool
|
||||
/dev/devicelab/bin/tasks/routing_test.dart @zanderso @flutter/tool
|
||||
/dev/devicelab/bin/tasks/textfield_perf__e2e_summary.dart @zanderso @flutter/engine
|
||||
/dev/devicelab/bin/tasks/web_size__compile_test.dart @yjbanov @flutter/web
|
||||
/dev/devicelab/bin/tasks/opacity_peephole_col_of_rows_perf__e2e_summary.dart @flar @flutter/engine
|
||||
|
@ -170,9 +171,7 @@
|
|||
/dev/devicelab/bin/tasks/post_backdrop_filter_perf_ios__timeline_summary.dart @zanderso @flutter/engine
|
||||
/dev/devicelab/bin/tasks/simple_animation_perf_ios.dart @zanderso @flutter/engine
|
||||
/dev/devicelab/bin/tasks/tiles_scroll_perf_ios__timeline_summary.dart @zanderso @flutter/engine
|
||||
|
||||
## Linux android and Mac iOS Devicelab tests
|
||||
/dev/devicelab/bin/tasks/routing_test.dart @zanderso @flutter/tool
|
||||
/dev/devicelab/bin/tasks/route_test_ios.dart @jasguerrero @flutter/tool
|
||||
|
||||
## Host only DeviceLab tests
|
||||
/dev/devicelab/bin/tasks/build_aar_module_test.dart @zanderso @flutter/tool
|
||||
|
|
35
dev/devicelab/bin/tasks/route_test_ios.dart
Normal file
35
dev/devicelab/bin/tasks/route_test_ios.dart
Normal file
|
@ -0,0 +1,35 @@
|
|||
// Copyright 2014 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:flutter_devicelab/framework/devices.dart';
|
||||
import 'package:flutter_devicelab/framework/framework.dart';
|
||||
import 'package:flutter_devicelab/framework/task_result.dart';
|
||||
import 'package:flutter_devicelab/framework/utils.dart';
|
||||
import 'package:path/path.dart' as path;
|
||||
|
||||
void main() {
|
||||
task(() async {
|
||||
deviceOperatingSystem = DeviceOperatingSystem.ios;
|
||||
final Device device = await devices.workingDevice;
|
||||
await device.unlock();
|
||||
final Directory appDir = dir(path.join(flutterDirectory.path, 'dev/integration_tests/ui'));
|
||||
section('TEST WHETHER `flutter drive --route` WORKS on IOS');
|
||||
await inDirectory(appDir, () async {
|
||||
return flutter(
|
||||
'drive',
|
||||
options: <String>[
|
||||
'--verbose',
|
||||
'-d',
|
||||
device.deviceId,
|
||||
'--route',
|
||||
'/smuggle-it',
|
||||
'lib/route.dart',
|
||||
],
|
||||
);
|
||||
});
|
||||
return TaskResult.success(null);
|
||||
});
|
||||
}
|
Loading…
Reference in a new issue