Run the embedded Android views integration test on the device lab. (#20841)

This commit is contained in:
amirh 2018-08-23 10:26:00 -07:00 committed by GitHub
parent d3844d7d9c
commit 1f31c3b354
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,14 @@
// Copyright 2018 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(createEmbeddedAndroidViewsIntegrationTest());
}

View file

@ -45,6 +45,13 @@ TaskFunction createPlatformChannelSampleTest() {
);
}
TaskFunction createEmbeddedAndroidViewsIntegrationTest() {
return new DriverTest(
'${flutterDirectory.path}/dev/integration_tests/android_views',
'lib/main.dart',
);
}
class DriverTest {
DriverTest(

View file

@ -130,6 +130,13 @@ tasks:
stage: devicelab
required_agent_capabilities: ["mac/android"]
embedded_android_views_integration_test:
description: >
Tests embedded Android views.
stage: devicelab
required_agent_capabilities: ["mac/android"]
flaky: true
run_release_test:
description: >
Checks that `flutter run --release` does not crash.