mirror of
https://github.com/flutter/flutter
synced 2024-09-17 23:31:55 +00:00
Run the embedded Android views integration test on the device lab. (#20841)
This commit is contained in:
parent
d3844d7d9c
commit
1f31c3b354
|
@ -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());
|
||||
}
|
|
@ -45,6 +45,13 @@ TaskFunction createPlatformChannelSampleTest() {
|
|||
);
|
||||
}
|
||||
|
||||
TaskFunction createEmbeddedAndroidViewsIntegrationTest() {
|
||||
return new DriverTest(
|
||||
'${flutterDirectory.path}/dev/integration_tests/android_views',
|
||||
'lib/main.dart',
|
||||
);
|
||||
}
|
||||
|
||||
class DriverTest {
|
||||
|
||||
DriverTest(
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue