Add integration test for platform interaction (#11580)
This commit is contained in:
14
dev/devicelab/bin/tasks/platform_interaction_test.dart
Normal file
14
dev/devicelab/bin/tasks/platform_interaction_test.dart
Normal file
@@ -0,0 +1,14 @@
|
||||
// Copyright 2017 The Chromium 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:async';
|
||||
|
||||
import 'package:flutter_devicelab/framework/adb.dart';
|
||||
import 'package:flutter_devicelab/framework/framework.dart';
|
||||
import 'package:flutter_devicelab/tasks/integration_tests.dart';
|
||||
|
||||
Future<Null> main() async {
|
||||
deviceOperatingSystem = DeviceOperatingSystem.android;
|
||||
await task(createPlatformInteractionTest());
|
||||
}
|
||||
14
dev/devicelab/bin/tasks/platform_interaction_test_ios.dart
Normal file
14
dev/devicelab/bin/tasks/platform_interaction_test_ios.dart
Normal file
@@ -0,0 +1,14 @@
|
||||
// Copyright 2017 The Chromium 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:async';
|
||||
|
||||
import 'package:flutter_devicelab/framework/adb.dart';
|
||||
import 'package:flutter_devicelab/framework/framework.dart';
|
||||
import 'package:flutter_devicelab/tasks/integration_tests.dart';
|
||||
|
||||
Future<Null> main() async {
|
||||
deviceOperatingSystem = DeviceOperatingSystem.ios;
|
||||
await task(createPlatformInteractionTest());
|
||||
}
|
||||
@@ -16,6 +16,13 @@ TaskFunction createChannelsIntegrationTest() {
|
||||
);
|
||||
}
|
||||
|
||||
TaskFunction createPlatformInteractionTest() {
|
||||
return new DriverTest(
|
||||
'${flutterDirectory.path}/dev/integration_tests/platform_interaction',
|
||||
'lib/main.dart',
|
||||
);
|
||||
}
|
||||
|
||||
TaskFunction createPlatformChannelSampleTest() {
|
||||
return new DriverTest(
|
||||
'${flutterDirectory.path}/examples/platform_channel',
|
||||
|
||||
@@ -65,6 +65,12 @@ tasks:
|
||||
stage: devicelab
|
||||
required_agent_capabilities: ["has-android-device"]
|
||||
|
||||
platform_interaction_test:
|
||||
description: >
|
||||
Checks platform interaction on Android.
|
||||
stage: devicelab
|
||||
required_agent_capabilities: ["has-android-device"]
|
||||
|
||||
platform_channel_sample_test:
|
||||
description: >
|
||||
Runs a driver test on the Platform Channel sample app on Android.
|
||||
@@ -161,6 +167,12 @@ tasks:
|
||||
stage: devicelab_ios
|
||||
required_agent_capabilities: ["has-ios-device"]
|
||||
|
||||
platform_interaction_test_ios:
|
||||
description: >
|
||||
Checks platform interaction on iOS.
|
||||
stage: devicelab_ios
|
||||
required_agent_capabilities: ["has-ios-device"]
|
||||
|
||||
platform_channel_sample_test_ios:
|
||||
description: >
|
||||
Runs a driver test on the Platform Channel sample app on iOS.
|
||||
|
||||
Reference in New Issue
Block a user