Scaffolding for NativeDriver and AndroidNativeDriver for taking screenshots using adb. (#152194)

Closes https://github.com/flutter/flutter/issues/152189.

I have next to no clue how to configure this to run on CI, so bear with me as I rediscover the wheel.
This commit is contained in:
Matan Lurey
2024-07-24 13:12:19 -07:00
committed by GitHub
parent 00257e8c62
commit 09461925a3
9 changed files with 332 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
// 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 'package:path/path.dart' as path;
import '../utils.dart';
Future<void> runFlutterDriverAndroidTests() async {
print('Running Flutter Driver Android tests...');
await runDartTest(
path.join(flutterRoot, 'packages', 'flutter_driver'),
testPaths: <String>[
'test/src/native_tests/android',
],
);
}

View File

@@ -63,6 +63,7 @@ import 'suite_runners/run_android_java11_integration_tool_tests.dart';
import 'suite_runners/run_android_preview_integration_tool_tests.dart';
import 'suite_runners/run_customer_testing_tests.dart';
import 'suite_runners/run_docs_tests.dart';
import 'suite_runners/run_flutter_driver_android_tests.dart';
import 'suite_runners/run_flutter_packages_tests.dart';
import 'suite_runners/run_framework_coverage_tests.dart';
import 'suite_runners/run_framework_tests.dart';
@@ -142,6 +143,7 @@ Future<void> main(List<String> args) async {
'web_skwasm_tests': webTestsSuite.runWebSkwasmUnitTests,
// All web integration tests
'web_long_running_tests': webTestsSuite.webLongRunningTestsRunner,
'flutter_driver_android': runFlutterDriverAndroidTests,
'flutter_plugins': flutterPackagesRunner,
'skp_generator': skpGeneratorTestsRunner,
'realm_checker': realmCheckerTestRunner,