Add android semantics integration test to device lab (#20971)

This commit is contained in:
Jonah Williams
2018-09-06 12:31:18 -07:00
committed by GitHub
parent a4838a2adc
commit c6e8a513f0
26 changed files with 683 additions and 2 deletions

View File

@@ -0,0 +1,12 @@
// 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 'package:flutter_devicelab/framework/adb.dart';
import 'package:flutter_devicelab/framework/framework.dart';
import 'package:flutter_devicelab/tasks/integration_tests.dart';
void main() async {
deviceOperatingSystem = DeviceOperatingSystem.android;
await task(createAndroidSemanticsIntegrationTest());
}

View File

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

View File

@@ -136,6 +136,13 @@ tasks:
stage: devicelab
required_agent_capabilities: ["mac/android"]
android_semantics_integration_test:
description: >
Tests that the Android accessibility bridge produces correct semantics.
stage: devicelab
required_agent_capabilities: ["mac/android"]
flaky: true
run_release_test:
description: >
Checks that `flutter run --release` does not crash.